React Select & Combobox

Two pickers sharing one option model. Select is a listbox: arrows navigate, Enter commits, Escape closes, and typing jumps by typeahead — even while closed. Combobox filters as you type across labels and descriptions. Options carry an optional description line and a disabled state, and the selected option shows a petrol check.

Select — arrows, Enter, Escape, and typeahead all work.

Combobox — type to filter, e.g. "bga".

Installation

npx shadcn@latest add select.json

Usage

Loading...

Props

Shared by Select and Combobox:

PropTypeDefaultDescription
optionsSelectOption[]{ value, label, description?, disabled? }
valuestringSelected option value
onChange(value: string) => voidSelection callback
placeholderstring"Select…"Trigger / input placeholder
disabledbooleanfalseDisables the control
invalidbooleanfalseError styling + aria-invalid

Combobox additionally accepts emptyMessage (default "No results.").