← All blocks
Rich text
Free-form formatted text with an optional eyebrow and title.
Presets
- Reading widthreadingComfortable line length
Fetch this block
curl https://tetrasaas.com/api/block-library/blocks/tetra.rich_text?version=1.0.0The response carries the manifest and its SHA-256 checksum; verify the checksum before using it.
Manifest
{
"id": "tetra.rich_text",
"tags": [
"text",
"article",
"prose"
],
"type": "rich_text",
"label": "Rich text",
"author": {
"url": "https://tetrasaas.com",
"name": "Tetra"
},
"license": "MIT",
"presets": [
{
"key": "reading",
"data": {
"format": {
"width": "reading"
}
},
"label": "Reading width",
"description": "Comfortable line length"
}
],
"version": "1.0.0",
"category": "content",
"renderer": {
"kind": "builtin",
"view": "rich_text"
},
"dataSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"maxLength": 20000,
"minLength": 1,
"description": "Formatted text (basic HTML)"
},
"title": {
"type": "string",
"maxLength": 180
},
"format": {
"type": "object",
"description": "Block formatting: width, align, spacing, background, text colour"
},
"preset": {
"type": "string",
"maxLength": 48,
"description": "Preset key; see `presets`"
},
"eyebrow": {
"type": "string",
"maxLength": 120,
"description": "Small label above the title"
},
"richFields": {
"type": "object",
"description": "Rich-text bindings per field path"
},
"fieldFormats": {
"type": "object",
"description": "Per-field typography overrides"
},
"presentation": {
"type": "object",
"description": "Layout geometry: { version: 1, layout, mobile, itemColumns, itemBorder, tone, ... }"
},
"visualRecipe": {
"type": "string",
"maxLength": 48,
"description": "Visual style key; see `visualRecipes`"
}
}
},
"sampleData": {
"body": "<p>We helpen mensen software bouwen.</p>",
"title": "Over ons"
},
"defaultData": {
"body": "<p>Write something.</p>"
},
"description": "Free-form formatted text with an optional eyebrow and title.",
"schemaVersion": 1
}