UI Library

Combobox

Default

Apple
selected: Apple

Props

PropTypeDefaultNotes
selectedComboboxOption[]Chosen options rendered as chips.
suggestionsComboboxOption[]Dropdown options for the current query.
onQueryChange(query: string) => voidCalled on every keystroke; caller filters suggestions.
onAdd(item: ComboboxOption) => voidCalled when an option is picked or Enter creates one.
onRemove(value: string) => voidCalled when a chip is removed.
placeholderstringlocaleInput placeholder while nothing is selected.
idstringNative input id; prefixes the listbox ids.
chipSnippet<[option, remove]>Custom chip renderer.
optionSnippet<[suggestion]>Custom suggestion renderer.