build/scripts/block-library/tabs
block.json
1.6 KB
4 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/tabs/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "__experimental": true, |
| 4 | "apiVersion": 3, |
| 5 | "name": "core/tabs", |
| 6 | "title": "Tabs", |
| 7 | "description": "Display content in a tabbed interface to help users navigate detailed content with ease.", |
| 8 | "category": "design", |
| 9 | "textdomain": "default", |
| 10 | "allowedBlocks": [ "core/tab-list", "core/tab-panels" ], |
| 11 | "attributes": { |
| 12 | "activeTabIndex": { |
| 13 | "type": "number", |
| 14 | "default": 0 |
| 15 | }, |
| 16 | "editorActiveTabIndex": { |
| 17 | "type": "number", |
| 18 | "role": "local" |
| 19 | } |
| 20 | }, |
| 21 | "supports": { |
| 22 | "align": true, |
| 23 | "anchor": true, |
| 24 | "color": { |
| 25 | "text": true, |
| 26 | "background": true, |
| 27 | "__experimentalDefaultControls": { |
| 28 | "text": true, |
| 29 | "background": true |
| 30 | } |
| 31 | }, |
| 32 | "layout": { |
| 33 | "default": { |
| 34 | "type": "flex", |
| 35 | "flexWrap": "nowrap", |
| 36 | "justifyContent": "stretch", |
| 37 | "verticalAlignment": "stretch", |
| 38 | "orientation": "vertical" |
| 39 | }, |
| 40 | "allowSwitching": false, |
| 41 | "allowVerticalAlignment": true, |
| 42 | "allowJustification": true, |
| 43 | "allowOrientation": true, |
| 44 | "allowSizingOnChildren": true |
| 45 | }, |
| 46 | "html": false, |
| 47 | "interactivity": true, |
| 48 | "spacing": { |
| 49 | "blockGap": true, |
| 50 | "margin": true, |
| 51 | "padding": true |
| 52 | }, |
| 53 | "typography": { |
| 54 | "fontSize": true, |
| 55 | "__experimentalFontFamily": true |
| 56 | }, |
| 57 | "renaming": true |
| 58 | }, |
| 59 | "providesContext": { |
| 60 | "core/tabs-activeTabIndex": "activeTabIndex", |
| 61 | "core/tabs-editorActiveTabIndex": "editorActiveTabIndex" |
| 62 | }, |
| 63 | "usesContext": [ "core/tabs-list", "core/tabs-id" ], |
| 64 | "editorScript": "file:./index.js", |
| 65 | "editorStyle": "file:./index.css", |
| 66 | "style": "file:./style-index.css", |
| 67 | "viewScriptModule": "@wordpress/block-library/tabs/view" |
| 68 | } |
| 69 |