Query Combobox

Free-text search input with grouped autocomplete suggestions. Full ARIA combobox semantics (role=combobox, aria-expanded, role=listbox, role=option). Available in shell (for search bars) and input (standalone) variants. Supports loading skeleton and keyboard navigation.

core/query-combobox

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Input and shell variants with grouped suggestions, loading skeleton.

API Reference

PropTypeDescription
valuereq
stringCurrent input text value.
onChangereq
(value: string) => voidCalled when the text input changes.
onSelect
(suggestion: QuerySuggestion) => voidCalled when the user selects a suggestion item.
suggestions
QuerySuggestion[]Autocomplete suggestions — can be async-populated.
loading
booleanShows a loading skeleton when true.
placeholder
stringInput placeholder text.
label
stringField label — used as aria-label and SearchFieldShell label.
variant
"shell" | "input"shell renders as a SearchFieldShell trigger; input renders as a bordered text input.
disabled
booleanDisables the input.
invalid
booleanApplies a destructive ring.
emptyMessage
stringText shown when suggestions are empty and not loading.