| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "ghostkit/tabs-v2", |
| 5 |
"category": "ghostkit", |
| 6 |
"title": "Tabs", |
| 7 |
"description": "Separate content on the tabs with titles.", |
| 8 |
"keywords": ["tabs", "tab"], |
| 9 |
"supports": { |
| 10 |
"html": false, |
| 11 |
"className": false, |
| 12 |
"anchor": true, |
| 13 |
"align": ["wide", "full"] |
| 14 |
}, |
| 15 |
"attributes": { |
| 16 |
"tabActive": { |
| 17 |
"type": "string", |
| 18 |
"default": "tab-1" |
| 19 |
}, |
| 20 |
"trigger": { |
| 21 |
"type": "string" |
| 22 |
}, |
| 23 |
"buttonsVerticalAlign": { |
| 24 |
"type": "boolean", |
| 25 |
"default": false |
| 26 |
}, |
| 27 |
"buttonsAlign": { |
| 28 |
"type": "string", |
| 29 |
"default": "start" |
| 30 |
}, |
| 31 |
"tabsData": { |
| 32 |
"type": "array", |
| 33 |
"default": [ |
| 34 |
{ |
| 35 |
"slug": "tab-1", |
| 36 |
"title": "Tab 1" |
| 37 |
}, |
| 38 |
{ |
| 39 |
"slug": "tab-2", |
| 40 |
"title": "Tab 2" |
| 41 |
} |
| 42 |
] |
| 43 |
} |
| 44 |
}, |
| 45 |
"providesContext": { |
| 46 |
"ghostkit/tabActive": "tabActive" |
| 47 |
}, |
| 48 |
"styles": [ |
| 49 |
{ "name": "default", "label": "Tabs", "isDefault": true }, |
| 50 |
{ "name": "pills", "label": "Pills" }, |
| 51 |
{ "name": "radio", "label": "Radio Buttons" } |
| 52 |
] |
| 53 |
} |
| 54 |
|