# Context Menu

> A right-click (and long-press, or Shift+F10) menu anchored to the pointer, with icons, keyboard shortcuts, submenus and checkable rows for actions on a file, row, or canvas element.

- Author: [boardui](https://21st.dev/@boardui)
- Library: BoardUI
- License: MIT
- Tags: Menu, Dropdown, Context Menu, Right Click, Submenu
- npm dependencies: @remixicon/react, react-aria-components
- Live preview: https://21st.dev/@boardui/components/context-menu

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/boardui/context-menu?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/menu.md
