PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.0.39
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.0.39
2.1.8 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 All 108 releases
b-blocks / build / accordion-block / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.0.39, at build/accordion-block/block.json

87 lines 2.1 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/accordion-block",
5 "version": "0.1.0",
6 "title": "Accordion Block",
7 "category": "bBlocks",
8 "description": "A customizable accordion block with multiple themes and templates",
9 "keywords": [
10 "accordion",
11 "accordions",
12 "accordion block",
13 "accordion blocks"
14 ],
15 "textdomain": "b-blocks",
16 "example": {
17 "attributes": {
18 "theme": "modern",
19 "items": [
20 {
21 "title": "What is an accordion?",
22 "content": "An accordion is a vertically stacked list of items that can be expanded or collapsed to reveal content.",
23 "isOpen": true
24 },
25 {
26 "title": "Why use accordions?",
27 "content": "Accordions help organize content in a compact, user-friendly way, making it easy to navigate through multiple sections.",
28 "isOpen": false
29 }
30 ]
31 }
32 },
33 "attributes": {
34 "items": {
35 "type": "array",
36 "default": [
37 {
38 "title": "Accordion Item 1",
39 "content": "Add your content here. Click to edit this accordion item.",
40 "isOpen": false
41 }
42 ]
43 },
44 "theme": {
45 "type": "string",
46 "default": "modern"
47 },
48 "template": {
49 "type": "string",
50 "default": "none"
51 },
52 "customStyles": {
53 "type": "object",
54 "default": {
55 "headerBgColor": "#f8f9fa",
56 "headerTextColor": "#212529",
57 "contentBgColor": "#ffffff",
58 "contentTextColor": "#495057",
59 "borderColor": "#dee2e6",
60 "borderWidth": 1,
61 "borderRadius": 8,
62 "headerPadding": 16,
63 "contentPadding": 16,
64 "headerFontSize": 18,
65 "contentFontSize": 16,
66 "iconColor": "#212529",
67 "animationSpeed": 300
68 }
69 }
70 },
71 "supports": {
72 "html": false,
73 "anchor": true,
74 "align": [
75 "wide",
76 "full"
77 ],
78 "spacing": {
79 "margin": true,
80 "padding": true
81 }
82 },
83 "editorScript": "file:../index.js",
84 "render": "file:./render.php",
85 "style": "file:./view.css",
86 "viewScript": "file:./view.js"
87 }