Documentation
Menus

Context Menu

A menu of actions opened by a right-click. It shares the `popup` and `menu` families with dropdown-menu: installed after it, it adds one file.

npx shadcn@latest add @fragiola/context-menu
Context menu
Gallery

Style families

context-menu renders from the same menu source as dropdown-menu. The only differences are Root, Trigger (which carries select-none — behavioural, not visual, so it does not come from a family) and the positioning defaults.

The select-none on ContextMenu.Trigger stops text selection on right-click. It is behavioural, not visual, so it does not come from a family — keep the distinction.

Distribution proof

Installing dropdown-menu pulls menu and popup. Installing context-menu afterwards writes one file — context-menu.tsx itself. The shared families are already on disk. This is the distribution-level proof that the duplication claim holds.

Parts

Identical to dropdown-menu — same factory, same members. See the dropdown-menu parts table.