# ContextMenu (@salmonui/buttons/menu)

> The ContextMenu function of @salmonui/buttons/menu: Opens a menu at the pointer for its target. &lt;ContextMenu menu={&lt;Menu>...&lt;/Menu>}>{target}&lt;/ContextMenu>, or targetRef for an element it does not wrap.

Canonical: https://salmonui.dev/docs/reference/buttons/menu/ContextMenu

```ts
import { ContextMenu } from '@salmonui/buttons/menu';
```

Entry index: https://salmonui.dev/docs/reference/buttons/menu (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/buttons/menu.md).

## Reference

Kind: function

```ts
function ContextMenu(props: ContextMenuProps): ReactElement | null;
```

Opens a menu at the pointer for its target. `<ContextMenu menu={<Menu>...</Menu>}>{target}</ContextMenu>`,
or `targetRef` for an element it does not wrap.
