Pickers & inputs
JS behaviour
Combobox
A typeahead single-select: the list filters with every letter and the match is underlined; arrows, Home/End, Enter and Escape, and server search through a Livewire method.
Real scenarios
The component as it is used in a product — not a specimen grid.
Book a flight
No destination yet
From
Istanbul — IST
Searching…
No matches
Try “par”, “IST” or “دبی” — keywords and codes match too.
New issue
Searching…
Nobody by that name on this team
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| options | array | [] | ['ist' => 'Istanbul', …] or a list of ['value', 'label', 'description', 'icon', 'keywords', 'disabled']. |
| wire:model | string | — | On the component itself; binds the chosen value (x-modelable). |
| search | string | null | A Livewire method that takes the typed text and returns options (debounced, with a spinner). |
| clearable / filter | bool | true | The clear button; local filtering (turn off when the server already filters). |
| name / label / placeholder | string | null | The form field name, the accessible name and the placeholder. |
Snippet
<x-nx::combobox :options="$cities" label="Destination" placeholder="Search a city"
wire:model.live="destination" name="destination" />