T
Tetra
← All blocks

Hero

Opening section: eyebrow, headline, lead text, optional image, badges and up to two buttons.

Presets

  • Split
    split
    Text left, image right
  • Centered
    centered
    Single centred column
  • Image first
    image-first
    Image left, text right

Fetch this block

curl https://tetrasaas.com/api/block-library/blocks/tetra.hero?version=1.0.0

The response carries the manifest and its SHA-256 checksum; verify the checksum before using it.

Manifest
{
  "id": "tetra.hero",
  "tags": [
    "landing",
    "header",
    "above-the-fold"
  ],
  "type": "hero",
  "label": "Hero",
  "author": {
    "url": "https://tetrasaas.com",
    "name": "Tetra"
  },
  "license": "MIT",
  "presets": [
    {
      "key": "split",
      "data": {
        "presentation": {
          "layout": {
            "columns": 2
          },
          "version": 1
        }
      },
      "label": "Split",
      "description": "Text left, image right"
    },
    {
      "key": "centered",
      "data": {
        "presentation": {
          "layout": {
            "align": "center",
            "columns": 1
          },
          "mobile": {
            "columns": 1
          },
          "version": 1
        }
      },
      "label": "Centered",
      "description": "Single centred column"
    },
    {
      "key": "image-first",
      "data": {
        "presentation": {
          "layout": {
            "columns": 2,
            "imageOrder": "before"
          },
          "version": 1
        }
      },
      "label": "Image first",
      "description": "Image left, text right"
    }
  ],
  "version": "1.0.0",
  "category": "hero",
  "renderer": {
    "kind": "builtin",
    "view": "hero"
  },
  "dataSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
      "title"
    ],
    "properties": {
      "body": {
        "type": "string",
        "maxLength": 1200
      },
      "title": {
        "type": "string",
        "maxLength": 180,
        "minLength": 1,
        "description": "Headline"
      },
      "badges": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 80,
          "minLength": 1
        },
        "maxItems": 6,
        "description": "Short trust badges"
      },
      "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"
      },
      "imageAlt": {
        "type": "string",
        "maxLength": 180
      },
      "imageUrl": {
        "type": "string",
        "pattern": "^(https://[^\\s<>\"'()\\\\]+|/(?!/)[^\\s<>\"'()\\\\]*)$",
        "maxLength": 2048,
        "description": "Hero image"
      },
      "subtitle": {
        "type": "string",
        "maxLength": 700,
        "description": "Lead text under the headline"
      },
      "primaryCta": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "href": {
            "type": "string",
            "maxLength": 2048,
            "description": "Legacy alternative to type+target"
          },
          "type": {
            "enum": [
              "page",
              "product",
              "url",
              "mail"
            ],
            "description": "page | product | url | mail; with `target`"
          },
          "label": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1
          },
          "style": {
            "enum": [
              "primary",
              "secondary",
              "outline",
              "ghost"
            ]
          },
          "newTab": {
            "type": "boolean"
          },
          "target": {
            "type": "string",
            "maxLength": 2048,
            "description": "What the action points at, per `type` (root-relative path, product slug, https URL or e-mail)"
          }
        },
        "description": "Main button"
      },
      "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, ... }"
      },
      "secondaryCta": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "href": {
            "type": "string",
            "maxLength": 2048,
            "description": "Legacy alternative to type+target"
          },
          "type": {
            "enum": [
              "page",
              "product",
              "url",
              "mail"
            ],
            "description": "page | product | url | mail; with `target`"
          },
          "label": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1
          },
          "style": {
            "enum": [
              "primary",
              "secondary",
              "outline",
              "ghost"
            ]
          },
          "newTab": {
            "type": "boolean"
          },
          "target": {
            "type": "string",
            "maxLength": 2048,
            "description": "What the action points at, per `type` (root-relative path, product slug, https URL or e-mail)"
          }
        },
        "description": "Secondary button"
      },
      "visualRecipe": {
        "type": "string",
        "maxLength": 48,
        "description": "Visual style key; see `visualRecipes`"
      }
    }
  },
  "sampleData": {
    "title": "Bouw je eerste app in een weekend",
    "badges": [
      "Geen ervaring nodig",
      "Live begeleiding"
    ],
    "eyebrow": "Nieuw",
    "subtitle": "Leer vibe coding met een coach die naast je zit.",
    "primaryCta": {
      "type": "page",
      "label": "Bekijk de cursus",
      "target": "/cursus"
    }
  },
  "defaultData": {
    "title": "Your headline",
    "subtitle": "One sentence that says what you offer and for whom."
  },
  "description": "Opening section: eyebrow, headline, lead text, optional image, badges and up to two buttons.",
  "schemaVersion": 1
}