PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / trunk
bBlocks – Essential Gutenberg Blocks & Patterns Collection vtrunk
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 1.5.5 All 106 releases
b-blocks / build / cards / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection trunk, at build/cards/block.json

218 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "apiVersion": 3,
3 "name": "b-blocks/cards",
4 "title": "Cards",
5 "description": "Provide cards to display anything.",
6 "category": "bBlocks",
7 "keywords": [
8 "card",
9 "cards",
10 "cards section"
11 ],
12 "textdomain": "b-blocks",
13 "attributes": {
14 "align": {
15 "type": "string",
16 "default": "wide"
17 },
18 "cards": {
19 "type": "array",
20 "default": [
21 {
22 "link": "",
23 "background": {
24 "color": "#0000"
25 },
26 "img": {
27 "id": null,
28 "url": "",
29 "alt": "",
30 "title": ""
31 },
32 "imgBorder": {
33 "radius": "5px"
34 },
35 "cat": "Category 1",
36 "catColor": "#0dcaf0",
37 "title": "Card Title 1",
38 "titleColor": "#ff7500",
39 "desc": "This content area describes card 1 descriptions or details.",
40 "descColor": "#333"
41 },
42 {
43 "link": "",
44 "background": {
45 "color": "#0000"
46 },
47 "img": {
48 "id": null,
49 "url": "",
50 "alt": "",
51 "title": ""
52 },
53 "imgBorder": {
54 "radius": "5px"
55 },
56 "cat": "Category 2",
57 "catColor": "#0dcaf0",
58 "title": "Card Title 2",
59 "titleColor": "#ff7500",
60 "desc": "This content area describes card 2 descriptions or details.",
61 "descColor": "#333"
62 },
63 {
64 "link": "",
65 "background": {
66 "color": "#0000"
67 },
68 "img": {
69 "id": null,
70 "url": "",
71 "alt": "",
72 "title": ""
73 },
74 "imgBorder": {
75 "radius": "5px"
76 },
77 "cat": "Category 3",
78 "catColor": "#0dcaf0",
79 "title": "Card Title 3",
80 "titleColor": "#ff7500",
81 "desc": "This content area describes card 3 descriptions or details.",
82 "descColor": "#333"
83 }
84 ]
85 },
86 "columns": {
87 "type": "object",
88 "default": {
89 "desktop": 3,
90 "tablet": 2,
91 "mobile": 1
92 }
93 },
94 "columnGap": {
95 "type": "string",
96 "default": "20px"
97 },
98 "rowGap": {
99 "type": "string",
100 "default": "30px"
101 },
102 "layout": {
103 "type": "string",
104 "default": "vertical"
105 },
106 "link": {
107 "type": "object",
108 "default": {
109 "target": "_self",
110 "element": "card"
111 }
112 },
113 "textAlign": {
114 "type": "string",
115 "default": "left"
116 },
117 "padding": {
118 "type": "object",
119 "default": {
120 "vertical": "20px",
121 "horizontal": "10px"
122 }
123 },
124 "imgPos": {
125 "type": "string",
126 "default": "top"
127 },
128 "imgHeight": {
129 "type": "string",
130 "default": "250px"
131 },
132 "imgWidth": {
133 "type": "string",
134 "default": "90%"
135 },
136 "imgAlign": {
137 "type": "object",
138 "default": "center"
139 },
140 "isCat": {
141 "type": "boolean",
142 "default": true
143 },
144 "catTypo": {
145 "type": "object",
146 "default": {
147 "fontSize": {
148 "desktop": "15px"
149 }
150 }
151 },
152 "catMargin": {
153 "type": "object",
154 "default": {
155 "side": 4,
156 "bottom": "10px"
157 }
158 },
159 "isTitle": {
160 "type": "boolean",
161 "default": true
162 },
163 "titlePos": {
164 "type": "string",
165 "default": "image"
166 },
167 "titleTypo": {
168 "type": "object",
169 "default": {
170 "fontSize": {
171 "desktop": "22px",
172 "tablet": "20px",
173 "mobile": "18px"
174 }
175 }
176 },
177 "titleMargin": {
178 "type": "object",
179 "default": {
180 "side": 4,
181 "bottom": "10px"
182 }
183 },
184 "isDesc": {
185 "type": "boolean",
186 "default": true
187 },
188 "descTypo": {
189 "type": "object",
190 "default": {
191 "fontSize": {
192 "desktop": "15px"
193 }
194 }
195 }
196 },
197 "supports": {
198 "align": [
199 "wide",
200 "full"
201 ],
202 "html": false
203 },
204 "example": {
205 "attributes": {
206 "preview": true,
207 "columns": {
208 "desktop": 1,
209 "tablet": 1,
210 "mobile": 1
211 }
212 }
213 },
214 "editorScript": "file:../index.js",
215 "style": "file:./view.css",
216 "render": "file:./render.php",
217 "viewScript": "file:./view.js"
218 }