Rebar UI

1.0

opinion

Combobox

Search, pick, done.

Assign a teammateType to filter, arrows to move
Assignee
Empty
Chosen
Several
DesignOps
Error

Pick someone to own this.

Disabled

In context

New taskThe same picker, closed, inside a form
New task
ResearchDue Fri 30 Oct

Props

PropTypeRequiredDefault
multipleboolean | undefinedNo—
valuestring | undefinedNo—
defaultValuestring | undefinedNo—
onValueChange((value: string) => void) | undefinedNo—
optionsComboboxOption[]Yes—
placeholderstring | undefinedNo—
aria-labelstring | undefinedNo—
disabledboolean | undefinedNo—
classNamestring | undefinedNo—
invalidboolean | undefinedNo—
valuesstring[] | undefinedNo—
defaultValuesstring[] | undefinedNo—
onValuesChange((values: string[]) => void) | undefinedNo—

Accessibility

A real WAI-ARIA combobox: role="combobox" with aria-expanded and aria-controls, a role="listbox" popup, and aria-activedescendant tracking the arrow-key-highlighted option. Type to filter, arrows to move, Enter to pick, Escape to close.

data-rebar-* attributes

data-rebar-component="combobox"; data-rebar-part="list" on the option popup.

Migrating to Ant Design

A close, low-risk rename: AntD's AutoComplete takes the same options and filtering shape.