Search
MaterialComponentsDocs
Components overviewApp barBadgeButtonsButton groupButtonExtended FABFAB menuFABIcon buttonSplit buttonCardCarouselCheckboxChipsDate & time pickersDate pickerTime pickerDialogDividerListLoading & progressLoading indicatorProgressMenuNavigationNavigation barNavigation drawerNavigation railRadio buttonsSearchSelectSheetsBottom sheetSide sheetSliderSnackbarSwitchTabsText fieldToolbarTooltip

Search

Start with a search bar, then explore suggestions in a docked or fullscreen view.

FactoryWeb ComponentsReactVueSvelteSolidJS

Accessibility

  • The root is a search landmark. The input is a combobox, named by the placeholder or the web component's aria-label, that controls the suggestions listbox; aria-expanded follows the view.
  • The arrows move aria-activedescendant through the suggestions and Enter selects the one reached; a polite status announces how many show. Hovering a suggestion does not move the keyboard highlight.
  • The open view is in the top layer. Docked, it sits over a scrim and a press outside closes it; full screen, it is a modal <dialog>, the page behind is inert, and Escape closes it.
  • Its icon buttons are 48dp targets named "Search", "Go back" and "Clear search"; trailing items are named by their ariaLabel, which an avatar with onClick needs.