A filterable select with live search, proximity highlight riding the filter, clearable input, and native <select> mirror for forms.
Dependencies
Interaction Type
Type to filter options. Arrow keys navigate matches. Enter commits. The highlight springs to the new first match on each keystroke.
Props
Options you can pass to customize this component.
options*The options to filter.
valueControlled value.
onValueChangeCalled on selection.
placeholderInput placeholder. Defaults to "Search…".
clearableShow clear button. Defaults to true.
Installation
How to use
<Combobox options={[{ value: 'ber', label: 'Berlin' }]} value={city} onValueChange={setCity} placeholder="Search city…">
<ComboboxInput />
<ComboboxContent />
</Combobox>Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.