R
I

BlockDefinition

tested

A block definition: schema contribution + behavior + an opaque Vue component. Non-view layers treat `component` as an opaque value; only the view resolves it. The type is `Component` purely for authoring ergonomics (type-only import).

Signature

ts
interface BlockDefinition

Properties

PropertyTypeDescription
typereadonlystring
specreadonlyNodeSpec
component?readonlyComponent | undefined
meta?readonlyBlockMeta | undefined
behavior?readonlyBlockBehavior | undefined
commands?readonlyRecord<string, CommandFactory> | undefined
as?readonlystring | undefinedWrapper element tag for the block (default `'div'`).
placeholder?readonlystring | undefinedPlaceholder text shown when an empty text block has focus.
inputRules?readonlyreadonly InputRuleSpec[] | undefined