Context Menu
NavigationDisplays a menu to the user — such as a set of actions or functions — triggered by a right-click.
Import
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger, ... } from "@/components/ui/context-menu";Usage
Default
A simple context menu with items, submenus, and shortcuts.
Right click here
API Reference
modaltruebooleanWhether the context menu is modal
onOpenChange—(open: boolean) => voidEvent handler for open state change
| Prop | Type | Default | Description |
|---|---|---|---|
modal | boolean | true | Whether the context menu is modal |
onOpenChange | (open: boolean) => void | — | Event handler for open state change |