Skip to content

Commit eebfb0c

Browse files
authored
Merge pull request #24 from BeAPI/feat/add-faq-example
add example to FAQ block
2 parents 7da71f1 + 2cb1ce4 commit eebfb0c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/faq/block.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,30 @@
1616
"default": true
1717
}
1818
},
19+
"example": {
20+
"attributes": {
21+
"isAccordion": true
22+
},
23+
"innerBlocks": [
24+
{
25+
"name": "blockparty/faq-item",
26+
"innerBlocks": [
27+
{
28+
"name": "blockparty/faq-question",
29+
"attributes": {
30+
"question": "Lorem ipsum"
31+
}
32+
},
33+
{
34+
"name": "blockparty/faq-answer",
35+
"attributes": {
36+
"answer": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
37+
}
38+
}
39+
]
40+
}
41+
]
42+
},
1943
"textdomain": "blockparty-faq",
2044
"editorScript": "file:./index.js",
2145
"viewScript": "file:./script.js",

0 commit comments

Comments
 (0)