Skip to content

BlockConfig

Defined in: packages/core/src/fields/blocks/types.ts:128

Resolved block type definition, after defineBlock() applies all defaults.

TBlockMeta extends object = { }

optional admin?: BlockAdminConfig

Defined in: packages/core/src/fields/blocks/types.ts:138

Admin UI configuration.


optional blockName?: string

Defined in: packages/core/src/fields/blocks/types.ts:131


blockType: string

Defined in: packages/core/src/fields/blocks/types.ts:130

Unique discriminant value stored as blockType on every block item.


fields: Record<string, AdminField>

Defined in: packages/core/src/fields/blocks/types.ts:136

Fields that make up this block’s data shape.


id: string

Defined in: packages/core/src/fields/blocks/types.ts:132


interfaceName: string

Defined in: packages/core/src/fields/blocks/types.ts:144

TypeScript interface name for this block type.

Always set after defineBlock(). Defaults to ${slugToPascalCase(slug)}Block.


interfaceType: string

Defined in: packages/core/src/fields/blocks/types.ts:151

Computed TypeScript object-type string including all three framework keys.

E.g. { blockType: "heading"; blockName?: string; id: string; text: string }. Used by getFieldInterfaces to emit the block’s export type declaration.


optional label?: string

Defined in: packages/core/src/fields/blocks/types.ts:134

Display label shown in the admin block-type picker.


optional metadata?: TBlockMeta

Defined in: packages/core/src/fields/blocks/types.ts:152