PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / spoiler / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/spoiler/block.json

198 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "apiVersion": 3,
3 "$schema": "https://schemas.wp.org/trunk/block.json",
4 "name": "blockenberg/spoiler",
5 "title": "Spoiler / Reveal",
6 "category": "bkbg-content",
7 "icon": "hidden",
8 "description": "Hide content behind a click-to-reveal button. Perfect for spoilers, quiz answers, bonus tips, or any content that should stay hidden until the reader chooses to see it.",
9 "keywords": [
10 "spoiler",
11 "reveal",
12 "hidden",
13 "collapse",
14 "answer",
15 "click",
16 "toggle"
17 ],
18 "textdomain": "blockenberg",
19 "editorScript": "bkbg-spoiler-editor",
20 "style": "bkbg-spoiler-style",
21 "viewScript": "bkbg-spoiler-frontend",
22 "supports": {
23 "html": false,
24 "anchor": true,
25 "className": true,
26 "align": [
27 "wide",
28 "full"
29 ]
30 },
31 "attributes": {
32 "label": {
33 "type": "string",
34 "default": "⚠ Spoiler Warning"
35 },
36 "subLabel": {
37 "type": "string",
38 "default": "Click to reveal"
39 },
40 "showSubLabel": {
41 "type": "boolean",
42 "default": true
43 },
44 "content": {
45 "type": "string",
46 "default": "This is the hidden spoiler content. Edit this text to add your secret reveal content."
47 },
48 "spoilerType": {
49 "type": "string",
50 "default": "warning"
51 },
52 "revealBtnText": {
53 "type": "string",
54 "default": "Reveal Spoiler"
55 },
56 "hideBtnText": {
57 "type": "string",
58 "default": "Hide Spoiler"
59 },
60 "showIcon": {
61 "type": "boolean",
62 "default": true
63 },
64 "iconOpen": {
65 "type": "string",
66 "default": ""
67 },
68 "iconOpenType": {
69 "type": "string",
70 "default": "custom-char"
71 },
72 "iconOpenDashicon": {
73 "type": "string",
74 "default": ""
75 },
76 "iconOpenImageUrl": {
77 "type": "string",
78 "default": ""
79 },
80 "iconClosed": {
81 "type": "string",
82 "default": ""
83 },
84 "iconClosedType": {
85 "type": "string",
86 "default": "custom-char"
87 },
88 "iconClosedDashicon": {
89 "type": "string",
90 "default": ""
91 },
92 "iconClosedImageUrl": {
93 "type": "string",
94 "default": ""
95 },
96 "blurOnReveal": {
97 "type": "boolean",
98 "default": false
99 },
100 "startOpen": {
101 "type": "boolean",
102 "default": false
103 },
104 "animDuration": {
105 "type": "number",
106 "default": 300
107 },
108 "accentColor": {
109 "type": "string",
110 "default": "#f59e0b"
111 },
112 "labelBg": {
113 "type": "string",
114 "default": "#fffbeb"
115 },
116 "labelColor": {
117 "type": "string",
118 "default": "#92400e"
119 },
120 "contentBg": {
121 "type": "string",
122 "default": "#ffffff"
123 },
124 "contentColor": {
125 "type": "string",
126 "default": "#374151"
127 },
128 "borderColor": {
129 "type": "string",
130 "default": "#f59e0b"
131 },
132 "btnBg": {
133 "type": "string",
134 "default": "#f59e0b"
135 },
136 "btnColor": {
137 "type": "string",
138 "default": "#ffffff"
139 },
140 "btnHoverBg": {
141 "type": "string",
142 "default": "#d97706"
143 },
144 "labelSize": {
145 "type": "number",
146 "default": 16
147 },
148 "labelFontWeight": {
149 "type": "string",
150 "default": "700"
151 },
152 "labelLineHeight": {
153 "type": "number",
154 "default": 1.4
155 },
156 "contentSize": {
157 "type": "number",
158 "default": 16
159 },
160 "contentFontWeight": {
161 "type": "string",
162 "default": "400"
163 },
164 "contentLineHeight": {
165 "type": "number",
166 "default": 1.7
167 },
168 "btnRadius": {
169 "type": "number",
170 "default": 8
171 },
172 "cardRadius": {
173 "type": "number",
174 "default": 12
175 },
176 "paddingV": {
177 "type": "number",
178 "default": 20
179 },
180 "paddingH": {
181 "type": "number",
182 "default": 24
183 },
184 "maxWidth": {
185 "type": "number",
186 "default": 720
187 },
188 "labelTypo": {
189 "type": "object",
190 "default": {}
191 },
192 "contentTypo": {
193 "type": "object",
194 "default": {}
195 }
196 }
197 }
198