T
Tetra
← All blocks

Call to action

A closing band with a headline, short text and one or two buttons.

Presets

  • Plain
    plain
    On the page background
  • Accent
    accent
    Tinted band
  • Dark
    dark
    Inverted band

Fetch this block

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

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

Manifest
{
  "id": "tetra.cta",
  "tags": [
    "conversion",
    "button",
    "banner"
  ],
  "type": "cta",
  "label": "Call to action",
  "author": {
    "url": "https://tetrasaas.com",
    "name": "Tetra"
  },
  "license": "MIT",
  "presets": [
    {
      "key": "plain",
      "data": {
        "presentation": {
          "tone": "surface",
          "version": 1
        }
      },
      "label": "Plain",
      "description": "On the page background"
    },
    {
      "key": "accent",
      "data": {
        "presentation": {
          "tone": "accent",
          "version": 1
        }
      },
      "label": "Accent",
      "description": "Tinted band"
    },
    {
      "key": "dark",
      "data": {
        "presentation": {
          "tone": "dark",
          "version": 1
        }
      },
      "label": "Dark",
      "description": "Inverted band"
    }
  ],
  "version": "1.0.0",
  "category": "cta",
  "renderer": {
    "kind": "builtin",
    "view": "cta"
  },
  "dataSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
      "title",
      "primaryCta"
    ],
    "properties": {
      "body": {
        "type": "string",
        "maxLength": 900
      },
      "title": {
        "type": "string",
        "maxLength": 180,
        "minLength": 1
      },
      "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"
      },
      "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 (required)"
      },
      "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": {
    "body": "Schrijf je vandaag in en start volgende week.",
    "title": "Klaar om te beginnen?",
    "primaryCta": {
      "type": "page",
      "label": "Schrijf je in",
      "target": "/inschrijven"
    }
  },
  "defaultData": {
    "title": "Ready to start?",
    "primaryCta": {
      "type": "page",
      "label": "Get started",
      "target": "/start"
    }
  },
  "description": "A closing band with a headline, short text and one or two buttons.",
  "schemaVersion": 1
}