Installation
Props
ContextMenu
Root provider that coordinates open state and the shared motion shell used by the trigger, content, and item primitives.
childrenReactNodeRequired
openbooleandefaultOpenbooleanDefault false
onOpenChange(open: boolean) => voidCompose ContextMenuTrigger, ContextMenuContent, and item primitives inside the root.
Current install target: Radix UI.
Dependencies declared by this registry entry: @radix-ui/react-context-menu, motion, lucide-react.
Installs the Radix context-menu primitive under the same composable ContextMenu API used by the Base UI build.
Radix handles focus, dismissal, and pointer anchoring while the menu shell keeps the original Iconiq motion treatment.
The generated registry file is /r/r-context-menu.json.
ContextMenuTrigger
Interactive surface that opens the menu on right click, long press, or keyboard context-menu shortcuts.
childrenReactNodeRequired
asChildbooleanclassNamestringContextMenuContent
Portaled menu panel that renders the composed item tree with the Iconiq border, shadow, and motion treatment.
childrenReactNodeRequired
classNamestringcollisionPaddingnumberDefault 8
ContextMenuItem
Interactive menu row with the Iconiq active highlight, row entrance motion, and optional destructive styling.
childrenReactNodeRequired
variant"default" | "destructive"Default default
disabledbooleaninsetbooleanonSelect(event: Event) => voidContextMenuShortcut
Trailing helper text for keyboard hints. It stays muted until the parent row is focused.
childrenReactNodeRequired
classNamestringContextMenuSub
Nested submenu root. Pair ContextMenuSubTrigger with ContextMenuSubContent to build secondary menus such as More Tools.
childrenReactNodeRequired
ContextMenuCheckboxItem
Toggle row with a trailing check indicator and the same Iconiq row motion treatment as ContextMenuItem.
checkedbooleanonCheckedChange(checked: boolean) => voiddisabledbooleaninsetbooleanContextMenuRadioGroup
Single-select group for ContextMenuRadioItem rows. Use ContextMenuLabel above the options when you need a section heading.
valuestringonValueChange(value: string) => voidRegistry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: @radix-ui/react-context-menu, motion, lucide-react.
Installs the Radix context-menu primitive under the same composable ContextMenu API used by the Base UI build.
Radix handles focus, dismissal, and pointer anchoring while the menu shell keeps the original Iconiq motion treatment.
The generated registry file is /r/r-context-menu.json.