---
url: https://adecore.dev/ui/menus/context-menu.md
---
# ContextMenu

A menu that opens at the pointer on a right-click. Only the root and trigger differ from a [menu](/ui/menus/menu).

```tsx
import { ContextMenu } from '@adecore/ui';
```

## Parts

`ContextMenu.Root` holds the open state and `ContextMenu.Trigger` is the right-click area. The other parts are the menu's: `ContextMenu.Popup`, `ContextMenu.Item`, `ContextMenu.CheckboxItem`, `ContextMenu.RadioGroup`, `ContextMenu.RadioItem`, `ContextMenu.Group`, `ContextMenu.GroupLabel`, `ContextMenu.Label`, `ContextMenu.Separator`, `ContextMenu.Hint`, `ContextMenu.Check`, `ContextMenu.SubmenuRoot`, `ContextMenu.SubmenuTrigger`, `ContextMenu.Row`, `ContextMenu.RowAction` and `ContextMenu.RowSubmenuTrigger`. See [Menu](/ui/menus/menu#parts) for what each does.

`ContextMenu.Popup` opens at the pointer and needs no placement.

For copying from a block of text, use [`TextMenu`](/ui/menus/text-menu).
