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

Menu

Open a menu of actions. Explore placement, color, supporting text, and nested choices.

FactoryWeb ComponentsReactVueSvelteSolidJS

Accessibility

  • The list is a menu, a divider a separator, and each item a menuitem — or, in a menu that carries a selection, a menuitemradio; a gap keeps the items in one menu. The opener has aria-haspopup, aria-expanded and aria-controls.
  • Down and Up move between items, skipping disabled ones; Home and End go to the ends; typing a letter moves to the next item starting with it. Enter or Space chooses.
  • Right opens a submenu and Left closes it. Escape closes the menu and returns focus to the opener; Tab closes it and moves on.
  • Keyboard focus draws a 3dp inward secondary focus ring on the focused item (or on the menu surface when it opens empty); a pointer shows no ring.
  • Disabled items are aria-disabled. In a menu that carries a selection the items are menuitemradio and the selected one is aria-checked, updated by setSelected; a menu with no selection keeps plain menuitem, and a listbox keeps option with aria-selected.