# ContextMenu

Shows actions relevant to a target when it is right-clicked. Use it for contextual editing commands that also remain available elsewhere.

Package: `@kela-systems/ui-components` 4.1.0

```tsx
import { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup } from "@kela-systems/ui-components";
```

Links (Kela sign-in needed): [Storybook](https://main--6af1efd9453270bb59a6c00c.chromatic.com/?path=/docs/components-contextmenu--docs), [Source](https://github.com/Kela-Systems/kela/tree/main/packages/next/ui-components/src/context-menu), [Figma](https://www.figma.com/design/anhlwrbFM6mUiL0klxeK1I/ARK---Design-System?node-id=60-437)

## Props

A `className` on a part adds layout only: placement, sizing and spacing. Pick a look with a variant.

### ContextMenu

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuTrigger

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuContent

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuItem

| Variant | Values | Default |
| --- | --- | --- |
| `variant` | `default`, `destructive` | `default` |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `inset` | `boolean` |  |  |

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuCheckboxItem

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `inset` | `boolean` |  |  |

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuRadioItem

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `inset` | `boolean` |  |  |

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuLabel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `inset` | `boolean` |  |  |

Also takes the attributes of the HTML element it renders.

### ContextMenuSeparator

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuShortcut

Also takes the attributes of the HTML element it renders.

### ContextMenuGroup

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuPortal

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuSub

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuSubContent

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuSubTrigger

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `inset` | `boolean` |  |  |

Also takes the props of `@base-ui/react/context-menu`.

### ContextMenuRadioGroup

Also takes the props of `@base-ui/react/context-menu`.
