This component no longer exists. It was in Quantumblack Design System Registry’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-08 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
Context Menu
quantumblack-design-system-registry/context-menuRemovedComponent
A menu triggered by a right-click (or long-press) on a target element. Supports items, checkboxes, radio groups, submenus, shortcuts, and destructive actions.
Install it
npx shadcn@latest add http://designsystem.quantumblack.com/r/context-menu.jsonSource
1'use client';23import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';4import * as React from 'react';56import { Icon } from '@/components/ui/icon';7import { IconShell } from '@/components/ui/icon-shell';8import { cn } from '@/lib/utils';910type ContextMenuSize = 'default' | 'lg';1112const ContextMenuSizeContext = React.createContext<ContextMenuSize>('default');1314function useContextMenuSize() {15 return React.useContext(ContextMenuSizeContext);16}1718function CheckboxItemMark() {19 return (20 <svg21 xmlns="http://www.w3.org/2000/svg"22 className="h-[7px] w-2"23 viewBox="0 0 8 7"24 fill="none">25 <path26 fillRule="evenodd"27 clipRule="evenodd"28 d="M7.5 1.25L6.25 0L2.5 3.75L1.25 2.5L0 3.75L2.5 6.25L7.5 1.25Z"29 fill="currentColor"30 />31 </svg>32 );33}3435function ContextMenu({36 ...props37}: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {38 return <ContextMenuPrimitive.Root data-slot="context-menu" {...props} />;39}4041function ContextMenuPortal({42 ...props43}: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {44 return (45 <ContextMenuPrimitive.Portal data-slot="context-menu-portal" {...props} />46 );47}4849function ContextMenuTrigger({50 ...props51}: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {52 return (53 <ContextMenuPrimitive.Trigger data-slot="context-menu-trigger" {...props} />54 );55}5657interface ContextMenuContentProps extends React.ComponentProps<58 typeof ContextMenuPrimitive.Content59> {60 children?: React.ReactNode;61 onOpenAutoFocus?: (event: Event) => void;62 size?: ContextMenuSize;63}6465function ContextMenuContent({66 className,67 size = 'default',68 ...props69}: ContextMenuContentProps) {70 return (71 <ContextMenuPrimitive.Portal>72 <ContextMenuSizeContext.Provider value={size}>73 <ContextMenuPrimitive.Content74 data-slot="context-menu-content"75 data-size={size}76 className={cn(77// … truncated
What it pulls in
npm packages
Other registry items
