Components
Components
Combobox
Searchable single-select built on React Aria ComboBox.
newfree
Install
@hewnui/ui · hewnui
Combobox keeps typing and list filtering in one field. Lives under Pickers in the component gallery.
Usage
Accessibility
- The input carries
role="combobox"witharia-expandedand is wired to the listbox popover labelrenders a real<Label>bound to the input — passaria-labelinstead only when the field is already labelled by adjacent text- Arrow keys move through options, Enter selects the focused option, Escape closes the popover
- The toggle button is labelled by React Aria, so the ▾ glyph is never read aloud
- Pass
textValueonComboboxItemwhen its children are not plain text, so typeahead and announcements still have something to say
API reference
Props for Combobox from @hewnui/ui/combobox. Generated from component types — not hand-written.
Prop
Type