Vizel API / react/src / VizelBlockMenu
Function: VizelBlockMenu()
ts
function VizelBlockMenu(__namedParameters): ReactNode;Defined in: packages/react/src/components/VizelBlockMenu.tsx:52
Block context menu that appears when clicking the drag handle.
DOM/ARIA scaffolding (sections, submenu trigger, submenu list) comes from @vizel/core's buildVizelBlockMenuSpec; the React component owns focus management and runtime action binding. The open-channel (VIZEL_BLOCK_MENU_EVENT), positioning, and dismissal all route through controllers: createVizelPopoverController anchors the menu to the captured drag-handle rect (a @floating-ui/dom virtual element) and owns the pointer-outside and Escape listeners, so this file attaches no document-level listeners directly.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | VizelBlockMenuProps |
Returns
ReactNode