Components
Combobox
Searchable select: a button trigger opening a filterable option list in a popover.
Works controlled (value + onValueChange) or uncontrolled; supports virtualisation for large lists.
Usage
Best practices
Use
Comboboxwhen the user filters/searches a long list; useSelectfor a short closed list, or a domain variant likeCountryComboboxfor known sets.onValueChangefires with""when the current selection is toggled off - treat empty string as "cleared", not as a real value.For lists in the hundreds+, pass
virtualization={{ enabled: true }}so only visible rows mount instead of every option.Provide
itemsas{ label, value }[]- the visible text comes fromlabelwhile selection is tracked byvalue.
Props
Also exports
- interface
ComboboxItem - interface
ComboboxProps - interface
ComboboxVirtualizationOptions
Composition
Used by