Combobox
An input with a filterable listbox for selecting one or multiple options.
Usage
Disabled
Use the disabled prop to disable the entire combobox.
Multiple
Use the multiple prop to allow users to select more than one item from the list.
Highlight
This example shows how to compose the Combobox and Highlight components to emphasize matching text in search results.
API Reference
ComboboxRoot
| Prop | Type | Default |
|---|---|---|
| disabled | boolean | false |
| closeOnSelect | boolean | false |
| alwaysSubmitOnEnter | boolean | false |
| allowCustomValue | boolean | false |
| collection | MaybeFunction<ListCollection<T>> | - |
| onFocusOutside | (details: FocusOutsideEvent) => void | - |
| onSelect | (details: SelectionDetails) => void | - |
| onPointerDownOutside | (details: PointerDownOutsideEvent) => void | - |
| onValueChange | (details: ValueChangeDetails) => void | - |
| open | boolean | false |
| onOpenChange | (details: OpenChangeDetails) => void | - |
| openOnClick | boolean | false |
| openOnKeyPress | boolean | false |
| placeholder | string | - |
| name | string | - |
| invalid | boolean | false |
| inputBehavior | none | autocomplete | autohighlight | none |
| navigate | (details: NavigateDetails) => void | - |
| onInteractOutside | (details: InteractOutsideEvent) => void | - |
| onInputValueChange | (details: InputValueChangeDetails) => void | - |
| onHighlightChange | (details: HighlightChangeDetails) => void | - |
| asChild | boolean | - |

