@props([ 'name' => $attributes->whereStartsWith('wire:model')->first(), 'selectedSuffix' => null, 'placeholder' => null, 'searchable' => null, 'indicator' => null, 'clearable' => null, 'invalid' => null, 'button' => null, // Deprecated... 'trigger' => null, 'search' => null, // Slot forwarding... 'empty' => null, // Slot forwarding... 'clear' => null, 'close' => null, 'size' => null, ]) @php $invalid ??= ($name && $errors->has($name)); $class= Flux::classes() ->add('w-full') // The below reverts styles added by Tailwind Forms plugin ->add('border-0 p-0 bg-transparent') ; $trigger ??= $button; @endphp class($class)->merge(['filter' => true]) }} data-flux-control data-flux-select > {{ $slot}}