Skip to content

Context Menu

A menu of contextual actions that opens at the pointer position when the user right-clicks (or long-presses) a target element.

Context Menu
Right-click here

Installation

pnpm dlx shadcn@latest add @sortui/context-menu

Usage

import {
  ContextMenu,
  ContextMenuTrigger,
  ContextMenuContent,
  ContextMenuItem,
  ContextMenuCheckboxItem,
  ContextMenuRadioItem,
  ContextMenuLabel,
  ContextMenuSeparator,
  ContextMenuShortcut,
  ContextMenuGroup,
  ContextMenuPortal,
  ContextMenuSub,
  ContextMenuSubContent,
  ContextMenuSubTrigger,
  ContextMenuRadioGroup,
} from "@/components/ui/context-menu"

Examples

Issue

Checkout redirects to a blank page on Safari

ENG-482 · High · Bug, Payments, Safari

Photo

Two cups of coffee on a café table

Chat message

HM
Can someone grab oat milk on the way? We’re out and the café downstairs closes at six 🥛
Hana Mizuno · 5:42 PM

Ship your next project this week

Get the full Figma kit, the code of 180+ sections and every future update for one payment.

Get Pro Access