@props([ 'placeholder' => 'Select…', 'value' => null, 'invalid' => false, 'name' => null, 'searchable' => false, 'searchPlaceholder' => null, 'size' => 'md', ]) @php $name = $name ?? $attributes->get('name'); $initial = $value ?? $attributes->get('value'); $searchPlaceholder = $searchPlaceholder ?? __('dashboard.Search…'); $triggerSize = match ($size) { 'sm' => 'h-9 px-3.5 text-sm leading-5', 'lg' => 'h-12 px-4 text-base leading-6', default => 'h-10 px-4 text-sm leading-5', }; @endphp
only('class')->class('relative w-full') }} > whereStartsWith('wire:') }} >
@if ($searchable)
@endif
{{ $slot }} @if ($searchable)

{{ __('dashboard.No results.') }}

@endif