Context Menu

A menu of actions triggered by a right click or long press, anchored to the pointer.

$bunx shadcn@latest add @nx-ui/context-menu
Registry item
Installs withutils

Basic usage

Right-click the panel to open a menu of actions for a collection site.

Right-click this area — Site 14, Faringdon Depot

Checkboxes, radio group and submenu

Group related toggles, mutually exclusive options and nested actions.

Right-click — Map layer options

Disabled items & destructive action

Individual items can be disabled independently; destructive actions are styled in red.

Right-click — Waste consignment #KL-2291

Composition: waste record card

A realistic panel where the whole card is the trigger, grouping related actions.

Consignment note KL-2291

Faringdon Depot

12.4t mixed inert waste · collected 28 Jun 2026

Right-click for actions

API reference

Exported parts and their props, extracted from the component source.