Accessibility · Library v2.7.1

Typeahead Accessibility Overview

Typeahead keeps focus in the input while moving an active suggestion. Selection and chip behavior depend on configuration.

Keyboard interaction

Typeahead keyboard behavior
KeyAction
Up / DownMove the active suggestion.
Home / EndMove to the first/last result while the popup is open.
EnterSelect the active result, or the first visible result.
EscapeClose the popup.
TabSelect an active suggestion when the popup is open. In chips + multiSelect mode, updateOnTab retains focus only when a token is added. Empty/rejected Tab and Shift+Tab leave normally.

In your application

  • Use inputId with an external label, or ariaLabel/ariaLabelledBy to name the native input. Use ariaDescribedBy for help and errors. A placeholder alone is not a label.
  • Prefer updateOnTab=false when users need ordinary Tab navigation through a form.
  • Keep custom suggestion templates concise and avoid nested interactive controls.

Keep focus indicators visible, check contrast with your theme, and test at browser zoom. Try the component examples using only a keyboard.

Current limitations

  • Virtual counts describe the loaded, filtered results after limit; they do not represent an unknown remote total. Scrolling an active option out of view clears the active descendant.
  • Multi-select, chips and virtual results need separate assistive-technology checks.

This reference is based on the shipped source. It is not a WCAG conformance certificate or a claim that every browser and screen reader combination has been tested.

Compare your workflow with the W3C authoring pattern. The pattern describes the target interaction, not a guarantee of current component support.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.