Skip to content

Typeahead

Typeahead provides real-time, context-aware text completion.

Usage

Typeahead is a behavior that helps users search for and select from a list of suggested options by automatically predicting and completing their search queries as they type.

This is commonly used in the search bar, filtered search, and other places where users need to input text and select options from a list.

Typeahead

Best practices

  • Provide accurate and relevant suggestions.
  • Avoid long lists by displaying between 5 to 10 suggestions at a time.
  • When needed, provide a scroll bar to view more results beyond the initial list of suggestions.

Except where otherwise noted, content on this site is licensed under MIT License.