Skip to content

Vizel API / react/src / VizelBlockMenuProps

Interface: VizelBlockMenuProps ​

Defined in: packages/react/src/components/VizelBlockMenu.tsx:23

Properties ​

actions? ​

ts
optional actions?: readonly VizelBlockMenuAction[];

Defined in: packages/react/src/components/VizelBlockMenu.tsx:32

Custom block menu actions (replaces defaults)


className? ​

ts
optional className?: string;

Defined in: packages/react/src/components/VizelBlockMenu.tsx:36

Additional class name


editor? ​

ts
optional editor?: Editor | null;

Defined in: packages/react/src/components/VizelBlockMenu.tsx:30

Bind this menu to a specific editor. Falls back to the editor from VizelProvider context. When set (either way), the menu only reacts to drag-handle events from the bound editor, so multiple editors on the same page do not cross-trigger each other's menus.


locale? ​

ts
optional locale?: VizelLocale;

Defined in: packages/react/src/components/VizelBlockMenu.tsx:38

Locale for translated UI strings


nodeTypes? ​

ts
optional nodeTypes?: readonly VizelNodeTypeOption[];

Defined in: packages/react/src/components/VizelBlockMenu.tsx:34

Custom node types for "Turn into" submenu

Released under the MIT License.