Context Menu
betaA right-click menu that pops from the pointer with a spring and staggers its items in — same parts as Dropdown Menu.
- Overlays
- 1 file
- 1 npm package
- Accessibility notes
pnpm dlx @dowel-ui/cli add context-menunpm packages installed: radix-ui.
import { ContextMenu } from "@/components/ui/context-menu";Default
Gallery
Selectable
<ContextMenuContent>
Every prop of Radix UI’s ContextMenu.Content, plus className.
<ContextMenuItem>
| Prop | Type | Default |
|---|---|---|
insetIndents the item to align with items that have a leading indicator. | boolean | — |
variantStyles the item as destructive. Pair with a label that says what is destroyed. | "default" | "destructive" | "default" |
Every prop of Radix UI’s ContextMenu.Item, plus className.
<ContextMenuCheckboxItem>
Every prop of Radix UI’s ContextMenu.CheckboxItem, plus className.
<ContextMenuRadioItem>
Every prop of Radix UI’s ContextMenu.RadioItem, plus className.
<ContextMenuLabel>
| Prop | Type | Default |
|---|---|---|
inset | boolean | — |
Every prop of Radix UI’s ContextMenu.Label, plus className.
<ContextMenuSeparator>
Every prop of Radix UI’s ContextMenu.Separator, plus className.
<ContextMenuShortcut>
Plus every attribute of <span>.
<ContextMenuSubTrigger>
| Prop | Type | Default |
|---|---|---|
inset | boolean | — |
Every prop of Radix UI’s ContextMenu.SubTrigger, plus className.
<ContextMenuSubContent>
Every prop of Radix UI’s ContextMenu.SubContent, plus className.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes