| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/comparison-guide", |
| 5 |
"title": "Comparison Guide", |
| 6 |
"description": "A structured X vs Y comparison guide with criteria scoring, winner badges, and a verdict. Perfect for product, software, and strategy comparisons.", |
| 7 |
"category": "bkbg-marketing", |
| 8 |
"icon": "image-flip-horizontal", |
| 9 |
"keywords": [ |
| 10 |
"comparison", |
| 11 |
"versus", |
| 12 |
"vs", |
| 13 |
"guide", |
| 14 |
"review", |
| 15 |
"product", |
| 16 |
"software", |
| 17 |
"criteria" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-comparison-guide-editor", |
| 21 |
"editorStyle": "bkbg-comparison-guide-style", |
| 22 |
"style": "bkbg-comparison-guide-style", |
| 23 |
"viewScript": "bkbg-comparison-guide-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"guideTitle": { |
| 35 |
"type": "string", |
| 36 |
"default": "React vs Vue: Which Framework Should You Choose in 2026?" |
| 37 |
}, |
| 38 |
"intro": { |
| 39 |
"type": "string", |
| 40 |
"default": "Both React and Vue are excellent choices for modern web development. This guide breaks down the key decision criteria so you can choose the right tool for your project." |
| 41 |
}, |
| 42 |
"showIntro": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"nameA": { |
| 47 |
"type": "string", |
| 48 |
"default": "React" |
| 49 |
}, |
| 50 |
"descA": { |
| 51 |
"type": "string", |
| 52 |
"default": "A JavaScript library for building user interfaces, maintained by Meta." |
| 53 |
}, |
| 54 |
"emojiA": { |
| 55 |
"type": "string", |
| 56 |
"default": "⚛️" |
| 57 |
}, |
| 58 |
"emojiAType": { |
| 59 |
"type": "string", |
| 60 |
"default": "custom-char" |
| 61 |
}, |
| 62 |
"emojiADashicon": { |
| 63 |
"type": "string", |
| 64 |
"default": "admin-site" |
| 65 |
}, |
| 66 |
"emojiAImageUrl": { |
| 67 |
"type": "string", |
| 68 |
"default": "" |
| 69 |
}, |
| 70 |
"scoreA": { |
| 71 |
"type": "number", |
| 72 |
"default": 87 |
| 73 |
}, |
| 74 |
"showScores": { |
| 75 |
"type": "boolean", |
| 76 |
"default": true |
| 77 |
}, |
| 78 |
"nameB": { |
| 79 |
"type": "string", |
| 80 |
"default": "Vue" |
| 81 |
}, |
| 82 |
"descB": { |
| 83 |
"type": "string", |
| 84 |
"default": "The progressive JavaScript framework for building web interfaces, created by Evan You." |
| 85 |
}, |
| 86 |
"emojiB": { |
| 87 |
"type": "string", |
| 88 |
"default": "💚" |
| 89 |
}, |
| 90 |
"emojiBType": { |
| 91 |
"type": "string", |
| 92 |
"default": "custom-char" |
| 93 |
}, |
| 94 |
"emojiBDashicon": { |
| 95 |
"type": "string", |
| 96 |
"default": "admin-site" |
| 97 |
}, |
| 98 |
"emojiBImageUrl": { |
| 99 |
"type": "string", |
| 100 |
"default": "" |
| 101 |
}, |
| 102 |
"scoreB": { |
| 103 |
"type": "number", |
| 104 |
"default": 84 |
| 105 |
}, |
| 106 |
"criteria": { |
| 107 |
"type": "array", |
| 108 |
"default": [ |
| 109 |
{ |
| 110 |
"name": "Learning Curve", |
| 111 |
"winner": "B", |
| 112 |
"scoreA": 6, |
| 113 |
"scoreB": 9, |
| 114 |
"notes": "Vue's template syntax feels more natural to developers coming from HTML/CSS backgrounds. React's JSX takes more adjustment." |
| 115 |
}, |
| 116 |
{ |
| 117 |
"name": "Ecosystem & Libraries", |
| 118 |
"winner": "A", |
| 119 |
"scoreA": 10, |
| 120 |
"scoreB": 7, |
| 121 |
"notes": "React has the largest ecosystem by far, including React Native for mobile, Next.js for SSR, and thousands of UI component libraries." |
| 122 |
}, |
| 123 |
{ |
| 124 |
"name": "Performance", |
| 125 |
"winner": "tie", |
| 126 |
"scoreA": 8, |
| 127 |
"scoreB": 8, |
| 128 |
"notes": "Both frameworks deliver excellent performance with virtual DOM diffing. The difference is negligible for most real-world applications." |
| 129 |
}, |
| 130 |
{ |
| 131 |
"name": "Job Market", |
| 132 |
"winner": "A", |
| 133 |
"scoreA": 10, |
| 134 |
"scoreB": 6, |
| 135 |
"notes": "React dominates job postings globally, making it the safer career investment for front-end developers." |
| 136 |
}, |
| 137 |
{ |
| 138 |
"name": "Official Tooling", |
| 139 |
"winner": "B", |
| 140 |
"scoreA": 7, |
| 141 |
"scoreB": 9, |
| 142 |
"notes": "Vue's official tooling (Vite integration, Pinia, Vue Router) is more cohesive and better documented than React's fragmented ecosystem." |
| 143 |
}, |
| 144 |
{ |
| 145 |
"name": "Corporate Backing", |
| 146 |
"winner": "A", |
| 147 |
"scoreA": 9, |
| 148 |
"scoreB": 7, |
| 149 |
"notes": "React is backed by Meta. Vue is community-driven — an advantage for independence but a risk for long-term funding." |
| 150 |
} |
| 151 |
] |
| 152 |
}, |
| 153 |
"showNotes": { |
| 154 |
"type": "boolean", |
| 155 |
"default": true |
| 156 |
}, |
| 157 |
"showCritScores": { |
| 158 |
"type": "boolean", |
| 159 |
"default": true |
| 160 |
}, |
| 161 |
"verdictWinner": { |
| 162 |
"type": "string", |
| 163 |
"default": "A" |
| 164 |
}, |
| 165 |
"verdictSummary": { |
| 166 |
"type": "string", |
| 167 |
"default": "React is the better choice for teams prioritizing employability, ecosystem depth, and mobile development via React Native. Choose Vue if you value a gentler learning curve, tighter official tooling, or are building smaller to mid-size SPAs." |
| 168 |
}, |
| 169 |
"showVerdict": { |
| 170 |
"type": "boolean", |
| 171 |
"default": true |
| 172 |
}, |
| 173 |
"layout": { |
| 174 |
"type": "string", |
| 175 |
"default": "table" |
| 176 |
}, |
| 177 |
"fontSize": { |
| 178 |
"type": "number", |
| 179 |
"default": 14 |
| 180 |
}, |
| 181 |
"titleFontSize": { |
| 182 |
"type": "number", |
| 183 |
"default": 24 |
| 184 |
}, |
| 185 |
"lineHeight": { |
| 186 |
"type": "number", |
| 187 |
"default": 170 |
| 188 |
}, |
| 189 |
"borderRadius": { |
| 190 |
"type": "number", |
| 191 |
"default": 12 |
| 192 |
}, |
| 193 |
"bgColor": { |
| 194 |
"type": "string", |
| 195 |
"default": "#ffffff" |
| 196 |
}, |
| 197 |
"borderColor": { |
| 198 |
"type": "string", |
| 199 |
"default": "#e5e7eb" |
| 200 |
}, |
| 201 |
"headerBg": { |
| 202 |
"type": "string", |
| 203 |
"default": "#f8fafc" |
| 204 |
}, |
| 205 |
"titleColor": { |
| 206 |
"type": "string", |
| 207 |
"default": "#0f172a" |
| 208 |
}, |
| 209 |
"introColor": { |
| 210 |
"type": "string", |
| 211 |
"default": "#374151" |
| 212 |
}, |
| 213 |
"colABg": { |
| 214 |
"type": "string", |
| 215 |
"default": "#eff6ff" |
| 216 |
}, |
| 217 |
"colAColor": { |
| 218 |
"type": "string", |
| 219 |
"default": "#1e3a8a" |
| 220 |
}, |
| 221 |
"colBBg": { |
| 222 |
"type": "string", |
| 223 |
"default": "#f0fdf4" |
| 224 |
}, |
| 225 |
"colBColor": { |
| 226 |
"type": "string", |
| 227 |
"default": "#14532d" |
| 228 |
}, |
| 229 |
"winnerBadgeBg": { |
| 230 |
"type": "string", |
| 231 |
"default": "#fef9c3" |
| 232 |
}, |
| 233 |
"winnerBadgeColor": { |
| 234 |
"type": "string", |
| 235 |
"default": "#713f12" |
| 236 |
}, |
| 237 |
"tieBg": { |
| 238 |
"type": "string", |
| 239 |
"default": "#f1f5f9" |
| 240 |
}, |
| 241 |
"tieColor": { |
| 242 |
"type": "string", |
| 243 |
"default": "#475569" |
| 244 |
}, |
| 245 |
"notesColor": { |
| 246 |
"type": "string", |
| 247 |
"default": "#6b7280" |
| 248 |
}, |
| 249 |
"rowAltBg": { |
| 250 |
"type": "string", |
| 251 |
"default": "#f8fafc" |
| 252 |
}, |
| 253 |
"verdictBg": { |
| 254 |
"type": "string", |
| 255 |
"default": "#0f172a" |
| 256 |
}, |
| 257 |
"verdictColor": { |
| 258 |
"type": "string", |
| 259 |
"default": "#ffffff" |
| 260 |
}, |
| 261 |
"accentColor": { |
| 262 |
"type": "string", |
| 263 |
"default": "#3b82f6" |
| 264 |
}, |
| 265 |
"fontWeight": { |
| 266 |
"type": "string", |
| 267 |
"default": "400" |
| 268 |
}, |
| 269 |
"typoTitle": { |
| 270 |
"type": "object", |
| 271 |
"default": {} |
| 272 |
}, |
| 273 |
"typoBody": { |
| 274 |
"type": "object", |
| 275 |
"default": {} |
| 276 |
} |
| 277 |
} |
| 278 |
} |
| 279 |
|