# Context menu

Secondary actions kept close to the selected object.

- ID: `context-menu`
- Import: `animui/context-menu`
- Category: Actions
- Runtime exports: `ContextMenu`, `contextMenuExampleItems`, `default`
- Declaration: `types/free/components/context-menu.d.ts`
- Type provenance: emitted-original-typescript
- Related: dropdown-menu, swipe-actions, popover, command-palette

```tsx
import { ContextMenu } from 'animui/context-menu';
```

This import example is not a complete render recipe: read the declaration below and its local references for required props, data, callbacks and provider context. Use `animui info context-menu` to resolve the local declaration graph. Global setup is in `llms.txt`.

```ts
export { ContextMenu, contextMenuExampleItems, default } from '../registry/components/context-menu/context-menu.js';
export type { ContextMenuItem, ContextMenuProps } from '../registry/components/context-menu/context-menu.js';
```
