Skip to content

Vizel API / core/src / VizelBlockMenuItemView

Interface: VizelBlockMenuItemView

Defined in: packages/core/src/builders/block-menu.ts:15

Item-data shape surfaced to the framework VizelBlockMenu component for each block action.

The action itself is the source of truth for icon name, label, optional shortcut, and isEnabled predicate — the component reads those off data.action at render time. The skeleton owns identity (key, index) and the structural flags that drive styling (isDestructive).

Properties

action

ts
action: VizelBlockMenuAction;

Defined in: packages/core/src/builders/block-menu.ts:17

The block-menu action as supplied by the consumer.


isDestructive

ts
isDestructive: boolean;

Defined in: packages/core/src/builders/block-menu.ts:22

Whether this action is destructive (currently only id === "delete"). Maps to the is-destructive class in the default theme.

Released under the MIT License.