Skip to content

Vizel API / react/src / VizelBlockMenuProps

Interface: VizelBlockMenuProps

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

Properties

actions?

ts
optional actions?: readonly VizelBlockMenuAction[];

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

Custom block menu actions (replaces defaults)


className?

ts
optional className?: string;

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

Additional class name


editor?

ts
optional editor?: Editor | null;

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

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:37

Locale for translated UI strings


nodeTypes?

ts
optional nodeTypes?: readonly VizelNodeTypeOption[];

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

Custom node types for "Turn into" submenu

Released under the MIT License.