On this page

Menu button

When to use menu button, its parts, states, keys and accessibility.

Draft. Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.

When to use

  • To hold several related actions that don’t fit as buttons: export as CSV, export as Excel, copy a link.
  • As the “More actions” icon button at the end of a row or a card header.

When not to use

  • When one action is clearly the default. Use a split button.
  • To choose a value for a form. Use a select.
  • To go to other pages. Use navigation.

Anatomy

Part Required Notes
Button Yes Any Button variant and size.
Chevron Yes, except icon-only chevron-down after the label.
Menu Yes color.surface.overlay, elevation.shadow.overlay, radius.overlay, at z-index.overlay.
Menu item Yes Optional icon, label, optional shortcut. Hover color.surface.overlay.hover.

States

The button has the Button states. While its menu is open it keeps the pressed look (aria-expanded="true" uses button.background.subtle.pressed).

Keyboard

Key Does
Enter, Space, Down arrow Open the menu and focus the first item
Up arrow Open the menu and focus the last item
Up and Down arrows Move between items
Enter Run the item and close the menu
Esc Close the menu and return focus to the button

Accessibility

  • The button has aria-haspopup="menu" and aria-expanded.
  • The menu has role="menu" and is named by the button; items have role="menuitem".