I
BlockDefinition
testedA 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 BlockDefinitionProperties
| Property | Type | Description |
|---|---|---|
typereadonly | string | — |
specreadonly | NodeSpec | — |
component?readonly | Component | undefined | — |
meta?readonly | BlockMeta | undefined | — |
behavior?readonly | BlockBehavior | undefined | — |
commands?readonly | Record<string, CommandFactory> | undefined | — |
as?readonly | string | undefined | Wrapper element tag for the block (default `'div'`). |
placeholder?readonly | string | undefined | Placeholder text shown when an empty text block has focus. |
inputRules?readonly | readonly InputRuleSpec[] | undefined | — |