drpshtiwan/livewire-async-select
label + options).array_replace instead of array_merge).role, sku) so custom slots can access full option payload data.tests/Feature/CustomSlotsTest.phptests/Feature/AsyncSelectTest.phpmax-selections, grouped options format, slot syntax).README.mddocs-src/guide/api.mddocs-src/guide/custom-slots.mddocs-src/guide/troubleshooting.mdDisplay selected labels immediately using value-labels - no API calls needed!
<livewire:async-select
wire:model="categoryId"
endpoint="/api/categories"
:value-labels="[3 => 'Web Development']"
/>
Suffix button now automatically closes dropdown when clicked - perfect for opening modals.
<livewire:async-select
:suffix-button="true"
suffix-button-action="showAddMediaModal"
/>
wire:model Default ValuesNo need to pass :value attribute - component automatically uses wire:model property value.
// Component
public $userId = 5;
<!-- No :value needed -->
<livewire:async-select wire:model="userId" :options="$users" />
value-labelsNone. Fully backward compatible.
How can I help you explore Laravel packages today?