Skip to main content

App bar search

Overview

App bar search is an optional feature that sits in the center slot of the app bar component. It's primarily used as the default search location for an application. In cases where the search may be local to a single component on the page, place the search closest to the component it's performed on.

It's easily customizable and depending on your needs it can provide a number of options for search depending on the scope needed, input type, and autocomplete suggestions.


Search examples

Use when an app doesn't have a use case to search for data and global search doesn't need to be supported.

Image of the app bar with no search.

This is the standard search used in the app bar. It's used for searches within an app or product suite. Common examples include: searching for a user, record, incident, case, or setting. If the search is contextual within the app, be sure to use placeholder text to clearly indicate the context.

Image of the app bar with an internal search option.


Search input type

When a more advanced search is needed, such as a large form with individual records to search on, it's recommended to add a secondary advanced search button next to the standard search. This can then launch your advanced search functionality if needed by the user.

Image of the app bar with search and a text button next to the search input for an advanced search.

If space is constrained, an icon button can be used to show the advanced search option. Be sure to include a tooltip when using an icon button.

Image of the app bar with search and an icon button next to the search input for an advanced search.


Autocomplete

Use to suggest exact results or suggested search queries.

Image of the app bar with autocomplete search suggestions.


Components