ContextMenu
Shows actions relevant to a target when it is right-clicked. Use it for contextual editing commands that also remain available elsewhere.
React
Figma
Import
import { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup } from "@kela-systems/ui-components";This page has no live example yet. Storybook shows ContextMenu in every state and theme.
Props
ContextMenu
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuTrigger
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuContent
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuItem
| Name | Default | Description |
|---|---|---|
variant"default" | "destructive" | "default" | |
insetboolean |
It also takes the props of Base UI's context-menu.
ContextMenuCheckboxItem
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the props of Base UI's context-menu.
ContextMenuRadioItem
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the props of Base UI's context-menu.
ContextMenuLabel
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the attributes of the HTML element it renders.
ContextMenuSeparator
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuShortcut
No props of its own. It also takes the attributes of the HTML element it renders.
ContextMenuGroup
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuPortal
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuSub
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuSubContent
No props of its own. It also takes the props of Base UI's context-menu.
ContextMenuSubTrigger
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the props of Base UI's context-menu.
ContextMenuRadioGroup
No props of its own. It also takes the props of Base UI's context-menu.