@props([ 'id' => null, 'label' => null, 'helper' => null, 'required' => false, 'options' => [], // list of ['value' => ..., 'label' => ..., 'disabled' => bool] 'placeholder' => 'Select…', 'searchPlaceholder' => 'Search…', 'emptyText' => 'No matching options', 'live' => false, 'onChange' => null, // optional $wire method to call after a selection 'wire' => true, // false = purely client-side value (no Livewire binding) 'value' => null, // initial value when wire=false 'disabled' => false, ])
@if ($label) {{-- Keep helper outside the label so taps do not open the listbox trigger. Margin lives only on this wrapper (mb-0 on the label) so spacing matches plain text labels and is not doubled by .application-settings-form label rules. --}} {{-- Fixed h-4 matches the helper icon so side-by-side fields align with or without a helper. --}}
@if ($helper) @endif
@endif
whereStartsWith('x-model') }} {{ $attributes->whereStartsWith('x-effect') }} @click.outside="close()" @keydown.escape.window="open && close()">

{{ $emptyText }}