Dropdown Context Menu
A menu that appears at the cursor location when you right-click a trigger area.
Basic Usage
Wrap any component with ContextMenu and pass the menu structure to the content prop. The menu triggers on right-click (contextmenu event).
Right-click this card
1import {2 ContextMenu,3 ContextMenuContent,Installation
npx zeroui@latest add context-menuProps
Props
| name | type | default | description |
|---|---|---|---|
| content | ReactNode | - | The content of the context menu (usually ContextMenuContent). |
| children | ReactNode | - | The trigger area that listens for the right-click event. |