ContextMenu
Context actions at the pointer or keyboard target, sharing the Menu interaction engine.
Preview
Use ContextMenu
ContextMenu is a named export of @flood-md/react. Connect the package once, then import what you use.
Design notes
- Right click opens at the pointer; ContextMenu or Shift+F10 opens near the actual focused target. The wrapper is keyboard-focusable and named.
- Uses the same Menu items, preferences, nested layers, typeahead and keyboard navigation. Leaf commands close the tree; Escape unwinds one level and restores the real source focus.
- disabled preserves the native browser context menu. Controlled open and onAction remain host-owned. Provide a visible Menu action as a primary alternative on touch devices. Introduced in 0.2.7.
API reference
View TypeScript source