← All blocks
Testimonials
Customer reviews: quote, name, a second line (role, city) and a star rating, with a photo or initials as avatar.
Presets
- CardscardsBordered cards in a grid
- Large quotequoteOne big quote per row, centred
- MinimalminimalTwo columns with an accent rail
Visual styles
- SoftsoftTinted cards without borders
- OutlinedoutlinedThin border, transparent background
- ElevatedelevatedWhite cards with a soft shadow
Fetch this block
curl https://tetrasaas.com/api/block-library/blocks/tetra.testimonial_grid?version=1.0.0The response carries the manifest and its SHA-256 checksum; verify the checksum before using it.
Manifest
{
"id": "tetra.testimonial_grid",
"tags": [
"reviews",
"testimonials",
"trust",
"stars"
],
"type": "testimonial_grid",
"label": "Testimonials",
"author": {
"url": "https://tetrasaas.com",
"name": "Tetra"
},
"license": "MIT",
"presets": [
{
"key": "cards",
"data": {
"presentation": {
"version": 1,
"itemBorder": "card",
"itemColumns": 3
}
},
"label": "Cards",
"description": "Bordered cards in a grid"
},
{
"key": "quote",
"data": {
"presentation": {
"layout": {
"align": "center"
},
"version": 1,
"itemBorder": "none",
"itemColumns": 1
}
},
"label": "Large quote",
"description": "One big quote per row, centred"
},
{
"key": "minimal",
"data": {
"presentation": {
"version": 1,
"itemBorder": "rail",
"itemColumns": 2
}
},
"label": "Minimal",
"description": "Two columns with an accent rail"
}
],
"version": "1.0.0",
"category": "social-proof",
"renderer": {
"kind": "builtin",
"view": "testimonial_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",
"anyOf": [
{
"required": [
"quote"
]
},
{
"required": [
"body"
]
}
],
"required": [
"author"
],
"properties": {
"body": {
"type": "string",
"maxLength": 700,
"description": "Legacy alias of quote"
},
"role": {
"type": "string",
"maxLength": 120,
"description": "Second line, e.g. job title"
},
"quote": {
"type": "string",
"maxLength": 700,
"minLength": 1,
"description": "The review text"
},
"title": {
"type": "string",
"maxLength": 140,
"description": "Optional headline above the quote"
},
"author": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "Name of the reviewer"
},
"rating": {
"type": "number",
"maximum": 5,
"minimum": 0,
"multipleOf": 0.5,
"description": "Stars, 0-5 in steps of 0.5; omit for no stars"
},
"location": {
"type": "string",
"maxLength": 120,
"description": "Second line, e.g. city; shown after the role"
},
"avatarAlt": {
"type": "string",
"maxLength": 180
},
"avatarUrl": {
"type": "string",
"pattern": "^(https://[^\\s<>\"'()\\\\]+|/(?!/)[^\\s<>\"'()\\\\]*)$",
"maxLength": 2048,
"description": "Photo of the reviewer; initials are shown without it"
}
}
},
"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"
},
"ratingLabel": {
"type": "string",
"maxLength": 80,
"description": "Screen-reader text for the stars; {rating} is replaced, e.g. \"Beoordeling {rating} van 5\""
},
"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": [
{
"role": "Productmanager",
"quote": "In een weekend bouwde ik mijn eerste app.",
"author": "Sanne de Vries",
"rating": 5,
"location": "Utrecht"
},
{
"role": "Zzp'er",
"quote": "Heldere uitleg en een fijne community.",
"author": "Jan Bakker",
"rating": 4.5,
"location": "Zwolle"
},
{
"role": "Designer",
"quote": "Eindelijk snap ik hoe het onder de motorkap werkt.",
"author": "Eva Jansen",
"rating": 5,
"location": "Amsterdam"
}
],
"title": "Wat cursisten zeggen"
},
"defaultData": {
"items": [
{
"quote": "Precies wat ik nodig had.",
"author": "Sanne de Vries",
"rating": 5
}
],
"title": "Wat anderen zeggen"
},
"description": "Customer reviews: quote, name, a second line (role, city) and a star rating, with a photo or initials as avatar.",
"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"
}
]
}