@props([ 'color' => 'primary', 'darkMode' => false, 'icon' => null, 'tag' => 'div', ]) @php $headerClasses = 'filament-dropdown-header flex w-full p-3 text-sm'; $iconClasses = \Illuminate\Support\Arr::toCssClasses([ 'filament-dropdown-header-icon mr-2 h-5 w-5 rtl:ml-2 rtl:mr-0', 'text-primary-500' => $color === 'primary', 'text-danger-500' => $color === 'danger', 'text-gray-500' => $color === 'secondary', 'text-success-500' => $color === 'success', 'text-warning-500' => $color === 'warning', ]); $labelClasses = 'filament-dropdown-header-label'; @endphp @if ($tag === 'div')
class([$headerClasses]) }}> @if ($icon) @endif {{ $slot }}
@elseif ($tag === 'a') class([$headerClasses]) }}> @if ($icon) @endif {{ $slot }} @endif