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

Toolbar

Keep the page's actions, or a selection's tools, in reach. Try the docked and floating toolbars, the vibrant colour and a vertical layout.

FactoryWeb ComponentsReactVueSvelteSolidJS

Accessibility

  • The element with the toolbar role holds the items and is named by ariaLabel; a vertical toolbar sets aria-orientation="vertical". The FAB is beside it, outside the toolbar.
  • The toolbar is one tab stop. The arrow keys move along it (Left and Right follow the reading direction; Up and Down when vertical), Home and End go to the ends, and disabled items are skipped. Tab leaves it, and coming back lands on the item focused last.
  • In a text field inside the toolbar, the arrow keys, Home and End stay with the caret.
  • Off screen (hide(), or scrollBehavior: 'exit'), the toolbar and its FAB are inert.
  • Collapsed (scrollBehavior: 'collapse', docked only), the toolbar stays on screen and is not inert: items keep their focus order and 48dp target areas, and an icon+label button's label is visually hidden rather than removed so its accessible name is preserved.