ThiloDesign System
DV

Context Menu

shadcn/ui

Right-click contextual menu. Power-user feature for table row actions, file operations.

@/components/ui/context-menu

Item types — right-click the box

Right-click anywhere in this area

Bookmark: unchecked · Pin: unchecked

In context — ticket table rows

IDTitleStatusPriority
T7A3763Fix login redirect
Open
High
T7A3801Update ticket filters
In Progress
Normal
T7A3820Export to CSV
In Review
Low

Right-click any row to trigger the context menu.

Sub-components

ComponentRole
ContextMenuRoot — wraps trigger and content
ContextMenuTriggerRight-click target area
ContextMenuContentMenu panel — appears at cursor position
ContextMenuLabelNon-clickable section header
ContextMenuItemClickable row — variant: "default" | "destructive"
ContextMenuCheckboxItemItem with checkbox — checked + onCheckedChange
ContextMenuSeparatorHorizontal divider between groups
ContextMenuShortcutKeyboard hint aligned to the right of the item
ContextMenuSubSub-menu root — wraps SubTrigger + SubContent
ContextMenuSubTriggerItem that opens the sub-menu on hover
ContextMenuSubContentSub-menu panel

ContextMenu vs DropdownMenu: same API, different trigger — right-click vs button click. Share the same sub-components pattern.

On this page