Context Menu

The actions for something, opened where it is right-clicked (or with the Menu key or Shift+F10).

The snippet an agent gets

ContextMenu.tsx
import { ContextMenu, MenuItem } from '@basiiik/ui';<ContextMenu trigger={<div tabIndex={0}>report.pdf</div>}><MenuItem>Rename</MenuItem></ContextMenu>

From get_component_snippet, with the required props filled in from the spec. Every snippet is type-checked against the library before it ships.

  • Example values were filled in for the required prop trigger: replace them with your own.
  • Open follows a right-click, the Menu key or Shift+F10 on the area; item states are MenuItem's (focus follows hover).
  • Compose with: menu-item.
  • Storybook: Overlays/Context menu.