Components/Combobox
Combobox
A searchable dropdown that filters options as you type. Supports keyboard navigation, custom options, and disabled states.
import { Combobox } from "@animui/ui"Basic
With search
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options | ComboboxOption[] | — | Array of { value, label, disabled? } options. |
value | string | — | Currently selected value (controlled). |
onChange | (value: string) => void | — | Called when a selection is made. |
placeholder | string | "Select..." | Input placeholder text. |
disabled | boolean | false | Disables the combobox. |
className | string | — | Additional classes for the wrapper. |
Keyboard navigation
- ↑ ↓Navigate options
- EnterSelect highlighted option
- EscClose dropdown