Components · Navigation · Menu
Back to Menu typesMenu
A floating panel of commands or actions - what appears when a dropdown trigger, a right-click, or a "..." button is activated. This is the panel/list itself, controlled by properties, not the trigger that opens it.
Properties
Size, corner radius and labels are properties of the same component, not separate buttons - change them below to check this menu's style and states in the Live Preview. Item count follows the number of labels entered.
Live Preview
Both types compared side by side, each in all 6 states - the first item demonstrates the row's state while the others stay at rest (Selected and Loading apply to the whole panel). If the last label is "Delete" or "Remove", that item is automatically styled destructive with a divider above it, in every row. One full matrix is rendered per selected combination of Size and Corner radius.
When to use
Any floating list of clickable commands or actions triggered by a control elsewhere on the page.
Component Guide
Overview
Menu is the floating panel of commands or actions itself - what appears when a Dropdown trigger, a right-click, or a "..." button is activated. This component is the panel/list content, not the trigger that opens it, which is a separate concern handled by Dropdown or a custom trigger.
When to Use
- The panel opened by a Dropdown trigger - the list of commands itself.
- A right-click context menu - actions relevant to whatever was right-clicked.
- A user account menu or bulk-actions panel - any floating list of clickable commands triggered from elsewhere.
When Not to Use
- The trigger button itself - that's Dropdown's responsibility - Menu is only the panel content.
- A form value picker - use Select - Menu items are commands to run, not values to store.
- Persistent, always-visible navigation - use a nav bar or sidebar rather than a menu that must be triggered open.
Best Practices
- Group related items with dividers, and visually separate destructive actions (e.g. "Delete") at the bottom.
- Keep item labels as short, specific verbs ("Duplicate", "Archive") so the whole menu scans quickly.
- Close on selection, outside click, and Escape, consistent with Dropdown's expected behavior.
Do and Don't
Do
A top border separates the destructive action from the routine ones, so it cannot be clicked by momentum.
Don't
Placing Delete first, right where the pointer lands on open, makes the riskiest action the easiest one to trigger by accident.
Accessibility
- Implemented with menu/menuitem roles, so arrow keys move between items and Home/End jump to the first/last item.
- Disabled items are exposed as unavailable to assistive technology, not just visually dimmed.
- Opening the menu moves focus into it, and closing it returns focus to whatever triggered it.
Related Components
Dropdown (its trigger), Tag, Button.
{
"component": "Menu",
"category": "Navigation",
"summary": "Menu is the floating panel of commands or actions itself - what appears when a Dropdown trigger, a right-click, or a \"...\" button is activated. This component is the panel/list content, not the trigger that opens it, which is a separate concern handled by Dropdown or a custom trigger.",
"whenToUse": [
"The panel opened by a Dropdown trigger - the list of commands itself.",
"A right-click context menu - actions relevant to whatever was right-clicked.",
"A user account menu or bulk-actions panel - any floating list of clickable commands triggered from elsewhere."
],
"whenNotToUse": [
"The trigger button itself - that's Dropdown's responsibility - Menu is only the panel content.",
"A form value picker - use Select - Menu items are commands to run, not values to store.",
"Persistent, always-visible navigation - use a nav bar or sidebar rather than a menu that must be triggered open."
],
"bestPractices": [
"Group related items with dividers, and visually separate destructive actions (e.g. \"Delete\") at the bottom.",
"Keep item labels as short, specific verbs (\"Duplicate\", \"Archive\") so the whole menu scans quickly.",
"Close on selection, outside click, and Escape, consistent with Dropdown's expected behavior."
],
"doAndDont": {
"do": "A divider separates the destructive action from the routine ones, so it cannot be clicked by momentum.",
"dont": "Placing Delete first, right where the pointer lands on open, makes the riskiest action the easiest one to trigger by accident."
},
"accessibility": [
"Implemented with menu/menuitem roles, so arrow keys move between items and Home/End jump to the first/last item.",
"Disabled items are exposed as unavailable to assistive technology, not just visually dimmed.",
"Opening the menu moves focus into it, and closing it returns focus to whatever triggered it."
],
"relatedComponents": [
"Dropdown",
"Tag",
"Button"
]
}