Right click here
Right click here
Right click here
Right click here
ContextMenu
base-ui docs ↗A menu that appears at the pointer on right-click or long press. Supports
items, separators, groups, keyboard shortcuts, and disabled states.
| Prop | Type | Default |
|---|---|---|
| children* | ReactElement<unknown, string | JSXElementConstructor<any>> | — |
The element that can be right-clicked / long-pressed to open the menu. | ||
| items* | ContextMenuEntry[] | — |
Array of menu entries: items, separators, and groups. | ||
| className | string | — |
Styled Parts
base-ui docs ↗Pre-styled wrappers around the corresponding base-ui parts. All base-ui props are forwarded.
CSS Class Names
Available as keys on the ContextMenuStyles object. Each key maps to a hashed CSS module class name at runtime.
group-labelitemitem-iconitem-labelitem-shortcutpopuppositionerseparatorsubmenu-iconsubmenu-triggertrigger