PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.7
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.7
2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 All 107 releases
b-blocks / build / off-canvas / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.7, at build/off-canvas/block.json

216 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "b-blocks/off-canvas",
5 "title": "Off-Canvas Drawer",
6 "description": "A slide-in drawer panel triggered by a button. Compose any blocks inside. Accessible focus trap, Escape to close, backdrop dismissal, and reduced-motion aware.",
7 "category": "bBlocks",
8 "keywords": [
9 "off-canvas",
10 "drawer",
11 "side panel",
12 "mobile menu",
13 "slide-in"
14 ],
15 "textdomain": "b-blocks",
16 "attributes": {
17 "align": {
18 "type": "string",
19 "default": ""
20 },
21 "trigger": {
22 "type": "object",
23 "default": {
24 "label": "Open Menu",
25 "showIcon": true,
26 "iconPosition": "left",
27 "icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z' /></svg>",
28 "iconStyle": {
29 "color": "",
30 "size": {
31 "desktop": "18px",
32 "tablet": "",
33 "mobile": ""
34 },
35 "gap": "8px"
36 },
37 "align": "left",
38 "typo": {
39 "fontSize": {
40 "desktop": "15px",
41 "tablet": null,
42 "mobile": null
43 }
44 },
45 "transition": 200,
46 "normal": {
47 "bg": {
48 "type": "solid",
49 "color": "#1e1e1e"
50 },
51 "color": "#ffffff",
52 "border": {},
53 "padding": {
54 "desktop": {
55 "top": "10px",
56 "right": "18px",
57 "bottom": "10px",
58 "left": "18px"
59 },
60 "tablet": {
61 "top": "",
62 "right": "",
63 "bottom": "",
64 "left": ""
65 },
66 "mobile": {
67 "top": "",
68 "right": "",
69 "bottom": "",
70 "left": ""
71 }
72 },
73 "borderRadius": {
74 "desktop": {
75 "top": "4px",
76 "right": "4px",
77 "bottom": "4px",
78 "left": "4px"
79 },
80 "tablet": {
81 "top": "",
82 "right": "",
83 "bottom": "",
84 "left": ""
85 },
86 "mobile": {
87 "top": "",
88 "right": "",
89 "bottom": "",
90 "left": ""
91 }
92 }
93 },
94 "hover": {
95 "bg": {},
96 "color": "",
97 "border": {},
98 "padding": {
99 "desktop": {
100 "top": "",
101 "right": "",
102 "bottom": "",
103 "left": ""
104 },
105 "tablet": {
106 "top": "",
107 "right": "",
108 "bottom": "",
109 "left": ""
110 },
111 "mobile": {
112 "top": "",
113 "right": "",
114 "bottom": "",
115 "left": ""
116 }
117 },
118 "borderRadius": {
119 "desktop": {
120 "top": "",
121 "right": "",
122 "bottom": "",
123 "left": ""
124 },
125 "tablet": {
126 "top": "",
127 "right": "",
128 "bottom": "",
129 "left": ""
130 },
131 "mobile": {
132 "top": "",
133 "right": "",
134 "bottom": "",
135 "left": ""
136 }
137 }
138 }
139 }
140 },
141 "drawer": {
142 "type": "object",
143 "default": {
144 "side": "left",
145 "width": {
146 "desktop": "320px",
147 "tablet": "",
148 "mobile": "85vw"
149 },
150 "height": {
151 "desktop": "",
152 "tablet": "",
153 "mobile": ""
154 },
155 "bg": {
156 "type": "solid",
157 "color": "#ffffff"
158 },
159 "padding": {
160 "desktop": {
161 "top": "24px",
162 "right": "24px",
163 "bottom": "24px",
164 "left": "24px"
165 },
166 "tablet": {},
167 "mobile": {}
168 },
169 "border": {},
170 "borderRadius": {
171 "desktop": {},
172 "tablet": {},
173 "mobile": {}
174 }
175 }
176 },
177 "overlay": {
178 "type": "object",
179 "default": {
180 "show": true,
181 "color": "rgba(0,0,0,0.5)"
182 }
183 },
184 "options": {
185 "type": "object",
186 "default": {
187 "closeLabel": "Close",
188 "triggerEvent": "click"
189 }
190 },
191 "transition": {
192 "type": "object",
193 "default": {
194 "type": "default",
195 "duration": 400,
196 "easing": "ease"
197 }
198 }
199 },
200 "supports": {
201 "align": [
202 "wide",
203 "full"
204 ],
205 "html": false
206 },
207 "example": {
208 "attributes": {
209 "preview": true
210 }
211 },
212 "editorScript": "file:../index.js",
213 "style": "file:./view.css",
214 "render": "file:./render.php",
215 "viewScript": "file:./view.js"
216 }