Skip to content

RenderBlocksProps

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

Props for RenderBlocks.

TBlock extends RenderableBlock

blocks: readonly TBlock[] | null | undefined

Defined in: packages/react/src/components/RenderBlocks.tsx:37

The value of a blocks() field; null/undefined renders nothing.


components: BlockComponents<TBlock>

Defined in: packages/react/src/components/RenderBlocks.tsx:39

Renderer per block type. A missing entry falls through to fallback.


optional fallback?: ComponentType<BlockComponentProps<TBlock>>

Defined in: packages/react/src/components/RenderBlocks.tsx:44

Rendered for a blockType with no components entry — a document can carry blocks a site no longer registers. Omitted → the block is skipped.