ContextMenu

Opens a Menu at the pointer or keyboard context-menu position.

Props

React props
NameTypeRequiredDefaultDescription
variantMenuVariantNo'standard'Visual color treatment shared by the menu family.
accessibleLabelstringNoAccessible name used when no external labelled-by relationship exists.
disabledbooleanNofalsePrevents pointer and keyboard context-menu activation.
triggerReactNodeYesElement that receives pointer and Shift+F10 context-menu activation.
childrenReactNodeNoMenuItem, MenuGroup, and MenuHeadline content.
onOpenChange(open: boolean) => voidNoNotifies visibility changes caused by user interaction.
classNamestringNoClasses applied to the display-contents root.