Lookup
Usage
Overview
The LookupField component allows users to select a value from among the available values using keywords. It can be a primary source for discovering or filtering content.
If used as a search bar, the placement of the search bar determines the range of the search and its results.
- Search bars placed on a header will search across the entire application for results.
- Search bars placed within an element will only search within the element for results.
Anatomy

The LookupField component appears with a label, an input field, and an icon.
LookupField consists of:
- Label: establishes context for the user's search.
- Input field: allows users to input keywords, text, and specific words.
- (If used as search) Search icon: triggers the search when clicked.
- Clear icon: removes all content from the input field.
Best practices
- Use placeholder text to guide users about appropriate terms for the context.
- Include autosuggestion wherever possible.
- Clearly state the categories of the available values.
- Have a clear empty-state message that directs users to the next step and offers suggestions for moving forward. (See UX writing considerations below).
- Use look-ups and searches sparingly across your application. Not every element requires a look-up or search.
- Highlight the terms that the user entered in the results.
- Add descriptions to results to help users navigate and pick the accurate option.
- Display the number of results returned.
- Keep the original text after users execute the query.
- Use a processing icon if retrieving values takes more than 5 seconds.
- Users understand the purpose of a look-up field; therefore, only use a content-specific label (instead of a generic term like 'search').x