Components / Context menu

Basic Usage

Wrap any area with MayaContextMenu. Right-clicking inside the area will trigger the menu exactly at the cursor coordinates.

Right click here

MayaContextMenu API

Prop / EventTypeDefaultDescription
#defaultSlotThe wrapping element. Right-clicking within this area opens the context menu.
#menuSlotThe content (dropdown items) of the context menu.