Context Menu
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Prop reference
Auto-generated from the component source
ContextMenu
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof ContextMenuPrimitive.Root>
ContextMenuCheckboxItem
classNamechildrenchecked
React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>
ContextMenuContent
className
React.ComponentProps<typeof ContextMenuPrimitive.Content>
ContextMenuGroup
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof ContextMenuPrimitive.Group>
ContextMenuItem
classNameinsetvariant= "default"
React.ComponentProps<typeof ContextMenuPrimitive.Item> & { inset?: boolean; variant?: "default" | "destructive"; }
ContextMenuLabel
classNameinset
React.ComponentProps<typeof ContextMenuPrimitive.Label> & { inset?: boolean; }
ContextMenuPortal
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof ContextMenuPrimitive.Portal>
ContextMenuRadioGroup
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>
ContextMenuRadioItem
classNamechildren
React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>
ContextMenuSeparator
className
React.ComponentProps<typeof ContextMenuPrimitive.Separator>
ContextMenuShortcut
className
React.ComponentProps<"span">
ContextMenuSub
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof ContextMenuPrimitive.Sub>
ContextMenuSubContent
className
React.ComponentProps<typeof ContextMenuPrimitive.SubContent>
ContextMenuSubTrigger
classNameinsetchildren
React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & { inset?: boolean; }
ContextMenuTrigger
All props are forwarded to the underlying primitive.
React.ComponentProps<typeof ContextMenuPrimitive.Trigger>