← All blocks
FAQ
Frequently asked questions as an accordion (or an open list).
Presets
- AccordionaccordionAnswers collapse
- OpenopenAll answers visible
Fetch this block
curl https://tetrasaas.com/api/block-library/blocks/tetra.faq?version=1.0.0The response carries the manifest and its SHA-256 checksum; verify the checksum before using it.
Manifest
{
"id": "tetra.faq",
"tags": [
"questions",
"accordion",
"support"
],
"type": "faq",
"label": "FAQ",
"author": {
"url": "https://tetrasaas.com",
"name": "Tetra"
},
"license": "MIT",
"presets": [
{
"key": "accordion",
"data": {
"presentation": {
"version": 1,
"disclosure": true
}
},
"label": "Accordion",
"description": "Answers collapse"
},
{
"key": "open",
"data": {
"presentation": {
"version": 1,
"disclosure": false
}
},
"label": "Open",
"description": "All answers visible"
}
],
"version": "1.0.0",
"category": "faq",
"renderer": {
"kind": "builtin",
"view": "faq"
},
"dataSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"question",
"answer"
],
"properties": {
"answer": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"description": "Answer; may contain basic HTML"
},
"question": {
"type": "string",
"maxLength": 220,
"minLength": 1
}
}
},
"maxItems": 20,
"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": [
{
"answer": "Nee, we beginnen bij nul.",
"question": "Heb ik ervaring nodig?"
},
{
"answer": "Reken op twee uur per week.",
"question": "Hoeveel tijd kost het?"
}
],
"title": "Veelgestelde vragen"
},
"defaultData": {
"items": [
{
"answer": "Yes, to start.",
"question": "Is it free?"
}
],
"title": "Questions"
},
"description": "Frequently asked questions as an accordion (or an open list).",
"schemaVersion": 1
}