From 2cb1ce471faf305bd0f9a7d1c179cf62e1f4126c Mon Sep 17 00:00:00 2001 From: Marie Comet Date: Tue, 19 May 2026 14:26:47 +0200 Subject: [PATCH] add example to FAQ block --- src/faq/block.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/faq/block.json b/src/faq/block.json index 024a625..372550f 100644 --- a/src/faq/block.json +++ b/src/faq/block.json @@ -16,6 +16,30 @@ "default": true } }, + "example": { + "attributes": { + "isAccordion": true + }, + "innerBlocks": [ + { + "name": "blockparty/faq-item", + "innerBlocks": [ + { + "name": "blockparty/faq-question", + "attributes": { + "question": "Lorem ipsum" + } + }, + { + "name": "blockparty/faq-answer", + "attributes": { + "answer": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + } + } + ] + } + ] + }, "textdomain": "blockparty-faq", "editorScript": "file:./index.js", "viewScript": "file:./script.js",