Combobox
A dropdown you can type into. Filters as you type, highlights the matched text, and is fully keyboard-driven. The field matches the Input's squircle and border treatment, so it sits naturally in a form.
Installation
npx stepwise-ui add combobox
Default
Each option can carry an optional description - it's searched alongside the label.
Without descriptions
Empty state
Keyboard
- ↓ / ↑ - move through the filtered options (wraps around).
- Enter - select the highlighted option.
- Esc - close the list and clear the query.
- Typing filters instantly; the matched substring is emphasised in each row.
Props
PropTypeDescription
optionsComboboxOption[]Array of { value, label, description? }.
valuestringControlled selected value.
onChange(value: string) => voidCalled when an option is chosen.
placeholderstringField placeholder. Default "Search…".
labelstringLabel rendered above the field.
emptyMessagestringShown when nothing matches. Default "No results found".
disabledbooleanDisables the field.