Type identifier:
textCategory: Experience Blocks
Block for rendering textual content. Supports plain strings, rich content objects, or a datumReference, with optional typography and semantic HTML element configuration.
The Text block accepts one of:
string{ content } (rich content payload)datumReferenceWhen content includes variable nodes, they render as {variable} placeholders in the editor and resolve to the referenced datum value at runtime. Each variable node can carry an optional defaultValue; when the referenced value is empty, the defaultValue is shown (or nothing, if it is not set).
Property | Type | Required | Notes |
|---|---|---|---|
|
| Yes | Block identifier. |
|
| Yes | Block discriminator. |
|
| Yes | Main text value. |
|
| No | Fallback value for a |
| CSS size | No | Text size control. |
| Semantic element (see below) | No | Semantic rendering element. |
|
| No | Optional state-specific overrides. |
Additional optional fields include entityContext, query, forEach, lineClamp, spacing props, raw style props, and typography props. align is deprecated in favour of textAlign.
Available values include:
h1-h6p, blockquote, address, figcaption, label, legendli, time, output, captionState entries use the shared state shape with optional overrides of the Text block properties (excluding id, type, name, states).
No states are currently available for Text blocks.
{
"id": "txt-1",
"type": "text",
"text": "Hello world"
}