Components/Combobox
Combobox
Searchable autocomplete combining a Select and a search input in one popover. Filters options as the user types.
Installation
npx ajaxui add comboboxProps
| Prop | Type | Default | Description |
|---|---|---|---|
| options | { value, label, disabled? }[] | — | — |
| value | string | — | — |
| defaultValue | string | — | — |
| onValueChange | (value: string) => void | — | — |
| placeholder | string | "Select an option…" | — |
| emptyText | string | "No results." | — |
| searchPlaceholder | string | "Search…" | — |