Menu
A dropdown of secondary actions for one object, opened from a “More” ActionIcon or a Button with a chevron.
When to use
Section titled “When to use”- Use it for three or more secondary actions on a card, a table row or a page header.
- Do not use it to choose a value (use
Select). Do not use it to navigate (use the sidebar orTabs).
What the consumer provides
Section titled “What the consumer provides”- A trigger with
aria-haspopup="menu"andaria-expanded. - Items are
Menu.Item, each with a verb label. An optionalicon-smTabler icon goes on the left, and an optionalKbdshortcut on the right. - Optional
Menu.Labelgroups andMenu.Divider. Destructive items usecolor="danger". They sit last, after a divider.
Behaviour
Section titled “Behaviour”- It opens on click with a 240ms fade and a 4px rise. It closes on Escape, an outside click or an item choice. Focus then goes back to the trigger.
- Arrow keys move, and Home and End jump to the ends. Typing a letter jumps to the matching item.
- A disabled item stays visible in
ink-disabled, with a tooltip that says why.
Tokens
Section titled “Tokens”surface-100, border, shadow-sm, radius-lg (panel), radius-sm (items), surface-hover, danger, danger-soft, ink-muted (labels), z-dropdown.
Mantine
Section titled “Mantine”<Menu shadow="sm" radius="lg" width={220} position="bottom-end"> with Menu.Target, Menu.Dropdown, Menu.Label, Menu.Item leftSection rightSection, Menu.Divider.