@props([ 'variant' => 'info', 'icon' => null, 'title' => null, 'dismissible' => false, ]) @php $config = match($variant) { 'success' => [ 'bg' => 'var(--color-success-50)', 'border' => 'var(--color-success-500)', 'text' => 'var(--color-success-600)', 'icon' => $icon ?? 'check-circle', ], 'error', 'danger' => [ 'bg' => 'var(--color-danger-50)', 'border' => 'var(--color-danger-500)', 'text' => 'var(--color-danger-600)', 'icon' => $icon ?? 'alert-circle', ], 'warning' => [ 'bg' => 'var(--color-warning-50)', 'border' => 'var(--color-warning-500)', 'text' => 'var(--color-warning-600)', 'icon' => $icon ?? 'alert-triangle', ], default => [ 'bg' => 'var(--color-info-50)', 'border' => 'var(--color-info-500)', 'text' => 'var(--color-info-600)', 'icon' => $icon ?? 'info', ], }; @endphp
@if($title)

{{ $title }}

@endif
{{ $slot }}
@if($dismissible) @endif