@php /** @var \Illuminate\View\ComponentSlot|string $left */ $text ??= $slot->toHtml(); $personalize = $classes(); $flash = session()->pull('tallstackui:banner'); @endphp @if ($show)
$wire, $personalize['wrapper'], $personalize['sizes.' . $size], $colors['background'] ?? $color['background'] => !$wire ]) @if ($wire) x-bind:class="{ 'bg-green-600' : type === 'success', 'bg-red-600' : type === 'error', 'bg-yellow-600' : type === 'warning', 'bg-blue-600' : type === 'info' }" @endif x-show="show && text !== ''" x-cloak @if ($wire) x-on:tallstackui:banner.window="add($event)" @endif @if ($animated || $close || $wire) x-transition:enter="transition ease-out duration-300" x-transition:enter-start="-translate-y-10" x-transition:enter-end="translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="translate-y-0" x-transition:leave-end="-translate-y-10" @endif> @if ($left) attributes->class([$personalize['slot.left'], $colors['text'] ?? '' => !$wire]) }} x-bind:class="{ 'text-green-50' : type === 'success', 'text-red-50' : type === 'error', 'text-yellow-50' : type === 'warning', 'text-blue-50' : type === 'info' }" @endif> {!! $left !!} @endif @if ($wire)
@else {!! $text !!} @endif
@endif