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-menu

Props

Props

nametypedefaultdescription
contentReactNode-The content of the context menu (usually ContextMenuContent).
childrenReactNode-The trigger area that listens for the right-click event.