build/scripts/block-library/separator
block.json
1.1 KB
10 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/separator/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "core/separator", |
| 5 | "title": "Separator", |
| 6 | "category": "design", |
| 7 | "description": "Create a break between ideas or sections with a horizontal separator.", |
| 8 | "keywords": [ "horizontal-line", "hr", "divider" ], |
| 9 | "textdomain": "default", |
| 10 | "attributes": { |
| 11 | "opacity": { |
| 12 | "type": "string", |
| 13 | "default": "alpha-channel" |
| 14 | }, |
| 15 | "tagName": { |
| 16 | "type": "string", |
| 17 | "enum": [ "hr", "div" ], |
| 18 | "default": "hr" |
| 19 | } |
| 20 | }, |
| 21 | "supports": { |
| 22 | "anchor": true, |
| 23 | "align": [ "center", "wide", "full" ], |
| 24 | "color": { |
| 25 | "enableContrastChecker": false, |
| 26 | "__experimentalSkipSerialization": true, |
| 27 | "gradients": true, |
| 28 | "background": true, |
| 29 | "text": false, |
| 30 | "__experimentalDefaultControls": { |
| 31 | "background": true |
| 32 | } |
| 33 | }, |
| 34 | "spacing": { |
| 35 | "margin": [ "top", "bottom" ] |
| 36 | }, |
| 37 | "interactivity": { |
| 38 | "clientNavigation": true |
| 39 | } |
| 40 | }, |
| 41 | "styles": [ |
| 42 | { "name": "default", "label": "Default", "isDefault": true }, |
| 43 | { "name": "wide", "label": "Wide Line" }, |
| 44 | { "name": "dots", "label": "Dots" } |
| 45 | ], |
| 46 | "editorStyle": "wp-block-separator-editor", |
| 47 | "style": "wp-block-separator" |
| 48 | } |
| 49 |