Combobox, editable
This implementation supports filtering of the results through a search input.
Keyboard-controllable, and clicking on the label focuses the widget.
This uses aria-activedescendant to set focus for screen readers so that the input remains usable while the user is navigating through the list of options.
WAI-ARIA checklist
comboboxroleSet on the element that displays the current value (typically an input or div).
listboxroleSet on the associated popup.
tree,grid,dialogare also supported.buttonrole(optional)Set on the element that toggles popup visibility. This element is optional. It should not be part of the tab sequence and should not be a child of the combobox element.
Keyboard controls(optional)
Keyboard mechanisms to move focus between the combobox element and popup elements
Combobox properties
aria-autocomplete="list"(optional)Required if autocomplete functionality is supported.
aria-expandedSpecifies if the combobox is collapsed or expanded.
aria-haspopup(optional)Specifies the role that the popup has. Defaults to
listbox.aria-controlsSpecifies the popup id.
aria-activedescendant(optional)Specifies the current active element within the popup. Alternatively the component can use a roving tab index to manage focus.
aria-errormessage(optional)aria-invalid(optional)aria-readonly(optional)aria-required(optional)
- quirk
- alpha
- curd
- lark
- strong
- apologetic
- space
- vanilla
- a