Skip to content

Commit 4f28db7

Browse files
committed
add block example
1 parent 8a97c8c commit 4f28db7

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

src/blockparty-accordion/block.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,60 @@
2424
"text": true
2525
}
2626
},
27+
"example": {
28+
"attributes": {
29+
"firstItemOpenByDefault": true
30+
},
31+
"innerBlocks": [
32+
{
33+
"name": "blockparty/accordion-item",
34+
"attributes": {
35+
"openByDefault": true
36+
},
37+
"innerBlocks": [
38+
{
39+
"name": "blockparty/accordion-summary",
40+
"attributes": {
41+
"label": "Lorem ipsum"
42+
}
43+
},
44+
{
45+
"name": "blockparty/accordion-panel",
46+
"innerBlocks": [
47+
{
48+
"name": "core/paragraph",
49+
"attributes": {
50+
"content": "Lorem ipsum"
51+
}
52+
}
53+
]
54+
}
55+
]
56+
},
57+
{
58+
"name": "blockparty/accordion-item",
59+
"innerBlocks": [
60+
{
61+
"name": "blockparty/accordion-summary",
62+
"attributes": {
63+
"label": "Lorem ipsum"
64+
}
65+
},
66+
{
67+
"name": "blockparty/accordion-panel",
68+
"innerBlocks": [
69+
{
70+
"name": "core/paragraph",
71+
"attributes": {
72+
"content": "Lorem ipsum"
73+
}
74+
}
75+
]
76+
}
77+
]
78+
}
79+
]
80+
},
2781
"textdomain": "blockparty-accordion",
2882
"editorScript": "file:./index.js",
2983
"viewScript": "file:./script.js",

0 commit comments

Comments
 (0)