@props([ 'placeholder' => null, 'searchable' => null, 'clearable' => null, 'multiple' => null, 'invalid' => null, 'empty' => null, 'input' => null, 'size' => null, 'name' => null, ]) @php // We only want to show the name attribute on the checkbox if it has been set // manually, but not if it has been set from the wire:model attribute... $showName = isset($name); if (! isset($name)) { $name = $attributes->whereStartsWith('wire:model')->first(); } if ($searchable) { throw new \Exception('Comboboxes do not support the searchable prop.'); } if ($multiple) { throw new \Exception('Comboboxes do not support the multiple prop.'); } $invalid ??= ($name && $errors->has($name)); $class = Flux::classes() ->add('w-full'); @endphp class($class)->merge(['filter' => true]) }} @if($showName) name="{{ $name }}" @endif data-flux-control data-flux-select> {{ $input }} {!! __($empty) !!} {{ $empty }} {!! __('No results found') !!} {{ $slot }}