Menu representing a set of actions, displayed at the point of right click or long press.
This component inherits props from the Context Menu primitive.
Contains all the parts of a context menu.
Wraps the element that will open the context menu.
The component that pops out when the context menu is open.
Used to render a label. It won't be focusable using arrow keys.
The component that contains the context menu items.
Used to group multiple Item
parts.
Used to group multiple RadioItem
parts.
An item that can be controlled and rendered like a radio.
An item that can be controlled and rendered like a checkbox.
Contains all the parts of a submenu.
An item that opens a submenu. Must be rendered inside ContextMenu.Sub
.
The component that pops out when a submenu is open. Must be rendered inside ContextMenu.Sub
.
Use the size
prop to control the size.
Use the variant
prop to customize the visual style of the context menu.
Use the color
prop to assign a specific color. You can also pass color
to a specific item to override for semantic reasons (i.e. a destructive action).
Use the highContrast
prop to increase color contrast with the background.