PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
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 / metric-cards / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/metric-cards/block.json

200 lines 5.5 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/metric-cards",
5 "title": "Metric Cards",
6 "category": "bkbg-business",
7 "icon": "chart-bar",
8 "description": "KPI / dashboard metric cards with trend indicators (up/down arrow + percentage change) and an optional mini sparkline. Different from Stats Counter — these show change-over-time context.",
9 "keywords": [
10 "metrics",
11 "kpi",
12 "dashboard",
13 "trend",
14 "sparkline",
15 "analytics",
16 "numbers",
17 "stats",
18 "performance"
19 ],
20 "textdomain": "blockenberg",
21 "editorScript": "bkbg-metric-cards-editor",
22 "editorStyle": "bkbg-metric-cards-style",
23 "style": "bkbg-metric-cards-style",
24 "viewScript": "bkbg-metric-cards-frontend",
25 "supports": {
26 "html": false,
27 "align": [
28 "wide",
29 "full"
30 ]
31 },
32 "attributes": {
33 "metrics": {
34 "type": "array",
35 "default": [
36 {
37 "id": "m1",
38 "label": "Monthly Revenue",
39 "value": "$48,200",
40 "trend": "up",
41 "trendValue": "12.4",
42 "trendPeriod": "vs last month",
43 "icon": "chart",
44 "sparkline": "30,45,38,55,48,62,58,72,68,84",
45 "accentColor": "#10b981",
46 "bgColor": "#ffffff",
47 "textColor": "#111827"
48 },
49 {
50 "id": "m2",
51 "label": "Active Users",
52 "value": "9,341",
53 "trend": "up",
54 "trendValue": "8.1",
55 "trendPeriod": "vs last week",
56 "icon": "users",
57 "sparkline": "20,25,28,24,32,35,30,42,38,45",
58 "accentColor": "#3b82f6",
59 "bgColor": "#ffffff",
60 "textColor": "#111827"
61 },
62 {
63 "id": "m3",
64 "label": "Churn Rate",
65 "value": "1.8%",
66 "trend": "down",
67 "trendValue": "0.3",
68 "trendPeriod": "vs last month",
69 "icon": "shield",
70 "sparkline": "5,4,6,4.5,3.8,4,3.2,3,2.5,1.8",
71 "accentColor": "#6c3fb5",
72 "bgColor": "#ffffff",
73 "textColor": "#111827"
74 },
75 {
76 "id": "m4",
77 "label": "Avg. Session",
78 "value": "4m 22s",
79 "trend": "up",
80 "trendValue": "18.6",
81 "trendPeriod": "vs last week",
82 "icon": "clock",
83 "sparkline": "2,2.5,3,2.8,3.5,3.2,4,3.8,4.2,4.4",
84 "accentColor": "#f59e0b",
85 "bgColor": "#ffffff",
86 "textColor": "#111827"
87 }
88 ]
89 },
90 "columns": {
91 "type": "number",
92 "default": 4
93 },
94 "gap": {
95 "type": "number",
96 "default": 20
97 },
98 "cardRadius": {
99 "type": "number",
100 "default": 14
101 },
102 "cardPadding": {
103 "type": "number",
104 "default": 24
105 },
106 "cardStyle": {
107 "type": "string",
108 "default": "shadow"
109 },
110 "showIcon": {
111 "type": "boolean",
112 "default": true
113 },
114 "iconSize": {
115 "type": "number",
116 "default": 20
117 },
118 "iconPosition": {
119 "type": "string",
120 "default": "top-right"
121 },
122 "showSparkline": {
123 "type": "boolean",
124 "default": true
125 },
126 "sparklineHeight": {
127 "type": "number",
128 "default": 40
129 },
130 "showTrend": {
131 "type": "boolean",
132 "default": true
133 },
134 "showTrendPeriod": {
135 "type": "boolean",
136 "default": true
137 },
138 "valueSize": {
139 "type": "number",
140 "default": 28
141 },
142 "valueFontWeight": {
143 "type": "number",
144 "default": 700
145 },
146 "labelSize": {
147 "type": "number",
148 "default": 13
149 },
150 "trendSize": {
151 "type": "number",
152 "default": 12
153 },
154 "valueTypo": {
155 "type": "object",
156 "default": {}
157 },
158 "labelTypo": {
159 "type": "object",
160 "default": {}
161 },
162 "trendTypo": {
163 "type": "object",
164 "default": {}
165 },
166 "upColor": {
167 "type": "string",
168 "default": "#10b981"
169 },
170 "downColor": {
171 "type": "string",
172 "default": "#ef4444"
173 },
174 "globalCardBg": {
175 "type": "string",
176 "default": "#ffffff"
177 },
178 "globalTextColor": {
179 "type": "string",
180 "default": "#111827"
181 },
182 "labelColor": {
183 "type": "string",
184 "default": "#6b7280"
185 },
186 "bgColor": {
187 "type": "string",
188 "default": ""
189 },
190 "paddingTop": {
191 "type": "number",
192 "default": 32
193 },
194 "paddingBottom": {
195 "type": "number",
196 "default": 32
197 }
198 }
199 }
200