React Autocomplete Component Accessibility

Autocomplete Accessibility

CoreUI PRO
This component is part of CoreUI PRO – a powerful UI library with over 250 components and 25+ templates, designed to help you build modern, responsive apps faster. Fully compatible with Angular, Bootstrap, React.js, and Vue.js.

Detailed overview of the accessibility features implemented in CoreUI React Autocomplete, ensuring compliance with WAI-ARIA guidelines.

On this page

Accessibility

The React Autocomplete component includes several accessibility features:

  • ARIA attributes: Proper role, aria-expanded, aria-haspopup, and aria-autocomplete attributes
  • Screen reader support: Descriptive labels and announcements for state changes
  • Keyboard navigation: Full keyboard support with arrow keys, Enter, Escape, and Tab
  • Focus management: Proper focus handling and visual focus indicators
  • Semantic markup: Uses appropriate HTML elements and structure

Keyboard shortcuts

KeyAction
Arrow DownNavigate to the next option or open dropdown
Arrow UpNavigate to the previous option
HomeMove the caret to the start of the text
EndMove the caret to the end of the text
EnterSelect the highlighted option, or the option whose label is the typed text; with the list closed, also submit the form
EscapeClose the dropdown; the input keeps focus and the highlighted option clears
TabAccept hint completion (when hints are enabled)
Backspace/DeleteDelete one character and clear a held selection