T
Tetra
← All blocks

Feature grid

A grid of cards, each with a title, short text, optional icon or image and link.

Presets

  • Three columns
    three-columns
    Cards in three columns
  • Two columns
    two-columns
    Cards in two columns
  • Rail list
    rail
    One column with an accent rail

Visual styles

  • Soft
    soft
    Tinted cards without borders
  • Outlined
    outlined
    Thin border, transparent background
  • Elevated
    elevated
    White cards with a soft shadow

Fetch this block

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

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

Manifest
{
  "id": "tetra.feature_grid",
  "tags": [
    "features",
    "benefits",
    "cards"
  ],
  "type": "feature_grid",
  "label": "Feature grid",
  "author": {
    "url": "https://tetrasaas.com",
    "name": "Tetra"
  },
  "license": "MIT",
  "presets": [
    {
      "key": "three-columns",
      "data": {
        "presentation": {
          "version": 1,
          "itemBorder": "card",
          "itemColumns": 3
        }
      },
      "label": "Three columns",
      "description": "Cards in three columns"
    },
    {
      "key": "two-columns",
      "data": {
        "presentation": {
          "version": 1,
          "itemBorder": "card",
          "itemColumns": 2
        }
      },
      "label": "Two columns",
      "description": "Cards in two columns"
    },
    {
      "key": "rail",
      "data": {
        "presentation": {
          "version": 1,
          "itemBorder": "rail",
          "itemColumns": 1
        }
      },
      "label": "Rail list",
      "description": "One column with an accent rail"
    }
  ],
  "version": "1.0.0",
  "category": "features",
  "renderer": {
    "kind": "builtin",
    "view": "feature_grid"
  },
  "dataSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
      "items"
    ],
    "properties": {
      "body": {
        "type": "string",
        "maxLength": 900
      },
      "items": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "title"
          ],
          "properties": {
            "body": {
              "type": "string",
              "maxLength": 700
            },
            "icon": {
              "type": "string",
              "maxLength": 80,
              "description": "Icon name"
            },
            "link": {
              "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": "Optional link on the card"
            },
            "title": {
              "type": "string",
              "maxLength": 140,
              "minLength": 1
            },
            "imageAlt": {
              "type": "string",
              "maxLength": 180
            },
            "imageUrl": {
              "type": "string",
              "pattern": "^(https://[^\\s<>\"'()\\\\]+|/(?!/)[^\\s<>\"'()\\\\]*)$",
              "maxLength": 2048,
              "description": "https URL or root-relative path"
            }
          }
        },
        "maxItems": 12,
        "minItems": 1
      },
      "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": {
    "items": [
      {
        "body": "Elke week samen bouwen met een coach.",
        "title": "Live sessies"
      },
      {
        "body": "Je bouwt iets dat je daadwerkelijk gebruikt.",
        "title": "Echte projecten"
      },
      {
        "body": "Vragen stellen en feedback krijgen.",
        "title": "Community"
      }
    ],
    "title": "Alles om te leren bouwen"
  },
  "defaultData": {
    "items": [
      {
        "body": "Ready in minutes.",
        "title": "Fast"
      }
    ],
    "title": "Why choose us"
  },
  "description": "A grid of cards, each with a title, short text, optional icon or image and link.",
  "schemaVersion": 1,
  "visualRecipes": [
    {
      "key": "soft",
      "label": "Soft",
      "description": "Tinted cards without borders"
    },
    {
      "key": "outlined",
      "label": "Outlined",
      "description": "Thin border, transparent background"
    },
    {
      "key": "elevated",
      "label": "Elevated",
      "description": "White cards with a soft shadow"
    }
  ]
}