Components

Context Menu

Right-click menu that displays contextual actions for specific elements

Preview

Right click here

Installation

Usage

Examples

With Submenus

Create nested menu structures.

Right click here

With Separators and Shortcuts

Add separators and keyboard shortcuts.

Right click here

With Checkboxes and Radio Groups

Include checkbox and radio group menu items.

Right click here

API Reference

ContextMenuContent

Prop

ContextMenuItem

Prop

ContextMenuLabel

Prop

ContextMenuGroupLabel

Prop

ContextMenuSubTrigger

Prop

ContextMenuSubContent

Prop

Additional Props

ContextMenu components inherit all props from Base UI Context Menu, including open, defaultOpen, onOpenChange, positioning options, and accessibility props.