Search

A search field is a text input enhanced for finding results. It can be used alone or with a typeahead menu of list items. 

On this page

Anatomy

Search Anatomy
NameDescriptionRequired
HeadingA concise label that identifies the purpose of the search field.Optional
Hint TextA short text that provides a hint or example for users.Optional
Search FieldThe overall container that includes the input text, close icon and search icon.Yes
Input TextThe area where users type their query.Yes
PlaceholderA temporary hint or example of what users can search for before users enter any input.Yes
Search IconSearch IconYes
Clear ButtonAllows users to dismiss the characters in the search fieldYes

States

Search States
StateDescription
DefaultWhen the search field is empty and ready for user input.
HoverWhen a user’s cursor is over the search’s field.
ActiveA focus outline appears around the search’s field to help users identify current selected component. This is used when a user navigates using keyboard controls or uses a cursor.
FocusWhen a user clicks into the search field or navigates using the keyboard.
DisabledWhen the search field is non-interactive and inactive icons.
LoadingA spinner indicates the query is processing.

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.