Combobox API
API reference for the Combobox components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Combobox | Forms |
| createCombobox | Forms |
| createSelection | Selection |
| useVirtualFocus | System |
| Popover | Disclosure |
| Select | Forms |
Combobox.Root
Props
mandatory
boolean | undefinedControls mandatory selection behavior: - false (default): No mandatory selection enforcement - true: Prevents deselecting the last selected item
Default: false
strict
boolean | undefinedStrict mode: reverts query to selected value on close if no match
Default: false
error
boolean | undefinedManual error state override — forces invalid regardless of error messages
Default: false
displayValue
((value: unknown) => string) | undefinedMaps selected value to input display text. Defaults to String(value).
modelValue
anyEvents
update:model-value
[value: any]Slots
default
ComboboxRootSlotPropsCombobox.Activator
Props
Slots
default
ComboboxActivatorSlotPropsCombobox.Content
Props
Slots
default
ComboboxContentSlotPropsCombobox.Control
Props
Slots
default
ComboboxControlSlotPropsCombobox.Cue
Props
Slots
default
ComboboxCueSlotPropsCombobox.Description
Props
Slots
default
ComboboxDescriptionSlotPropsCombobox.Empty
Props
Slots
default
ComboboxEmptySlotPropsCombobox.Error
Props
Slots
default
ComboboxErrorSlotPropsCombobox.HiddenInput
Props
Combobox.Item
Props
Slots
default
ComboboxItemSlotProps<V>