Key / stateFunctionDown ArrowUp ArrowSpace- Opens the listbox if it's not already displayed without moving focus or changing selection. - DOM focus remains on the combobox.SpaceCloses the listbox if it's dispalyed.
Listbox
prev
next
Key / stateFunctionDown ArrowUp ArrowMoves visual focus to the next/previous option.HomeEndMoves visual focus to the first/last option.ESCCloses listboxEnter, SpaceSelects an option
ARIA enhancements
Internal ARIA that is managed by the component:
prev
next
ARIAUsagearia-labelledby="IDREF"References the accessible name of the combobox.aria-describedby="IDREF"References the accessible description and status messages of the combobox.aria-label="STRING"References the accessible name of the listbox.role="status", role="alert"When message and state prop change, the status message is announced.aria-expanded="BOOLEAN"Indicates that the listbox element is displayed/hidden.aria-controls="IDREF"Identifies the element that serves as the listbox.aria-activedescendant="IDREF"Identifies the highlighted option of the listbox.aria-hidden="true"If required attribute is set, the visible indicator is hidden from assistive technologies.aria-autocomplete="list"Indicates that user input effects results of listbox (in filter mode).aria-haspopup="listbox"Indicates that the combobox will open a listbox.aria-required="true"Indicates if the element is required.
In general, you should prevent using the disabled state. Disabled elements are not reachable (focusable) anymore and
can be missed by screen reader users. They can be confusing for sighted users as well by not pointing out why these
elements are disabled.