Skip to content
This page is available as Markdown at /api/editor/type-aliases/textblockrenderprops.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

TextBlockRenderProps

TextBlockRenderProps = object

Defined in: packages/editor/src/renderers/renderer.types.ts:291

Text block render function. children carries the rendered spans - decorator and annotation registrations, renderPlaceholder, and range decorations have already fired at the leaf level. The render’s job is the outer wrapper element and any block-level composition (style, list-item) the consumer wants.

attributes: Record<string, unknown>

Defined in: packages/editor/src/renderers/renderer.types.ts:292


children: ReactElement

Defined in: packages/editor/src/renderers/renderer.types.ts:293


focused: boolean

Defined in: packages/editor/src/renderers/renderer.types.ts:294


node: PortableTextTextBlock

Defined in: packages/editor/src/renderers/renderer.types.ts:295


path: Path

Defined in: packages/editor/src/renderers/renderer.types.ts:296


readOnly: boolean

Defined in: packages/editor/src/renderers/renderer.types.ts:297


renderDefault: (props) => ReactElement

Defined in: packages/editor/src/renderers/renderer.types.ts:303

Render this position with the engine’s default wrapper. See ContainerRenderProps.renderDefault.

TextBlockRenderProps

ReactElement


selected: boolean

Defined in: packages/editor/src/renderers/renderer.types.ts:298