PluginProbe
Gutenberg / 12.7.1
Gutenberg v12.7.1
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / build / block-library / blocks / cover / block.json

block.json in Gutenberg 12.7.1, at build/block-library/blocks/cover/block.json

94 lines 1.7 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": 2,
4 "name": "core/cover",
5 "title": "Cover",
6 "category": "media",
7 "description": "Add an image or video with a text overlay — great for headers.",
8 "textdomain": "default",
9 "attributes": {
10 "url": {
11 "type": "string"
12 },
13 "id": {
14 "type": "number"
15 },
16 "alt": {
17 "type": "string",
18 "source": "attribute",
19 "selector": "img",
20 "attribute": "alt",
21 "default": ""
22 },
23 "hasParallax": {
24 "type": "boolean",
25 "default": false
26 },
27 "isRepeated": {
28 "type": "boolean",
29 "default": false
30 },
31 "dimRatio": {
32 "type": "number",
33 "default": 100
34 },
35 "overlayColor": {
36 "type": "string"
37 },
38 "customOverlayColor": {
39 "type": "string"
40 },
41 "backgroundType": {
42 "type": "string",
43 "default": "image"
44 },
45 "focalPoint": {
46 "type": "object"
47 },
48 "minHeight": {
49 "type": "number"
50 },
51 "minHeightUnit": {
52 "type": "string"
53 },
54 "gradient": {
55 "type": "string"
56 },
57 "customGradient": {
58 "type": "string"
59 },
60 "contentPosition": {
61 "type": "string"
62 },
63 "isDark": {
64 "type": "boolean",
65 "default": true
66 },
67 "allowedBlocks": {
68 "type": "array"
69 },
70 "templateLock": {
71 "type": [ "string", "boolean" ],
72 "enum": [ "all", "insert", false ]
73 }
74 },
75 "supports": {
76 "anchor": true,
77 "align": true,
78 "html": false,
79 "spacing": {
80 "padding": true,
81 "__experimentalDefaultControls": {
82 "padding": true
83 }
84 },
85 "color": {
86 "__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
87 "text": false,
88 "background": false
89 }
90 },
91 "editorStyle": "wp-block-cover-editor",
92 "style": "wp-block-cover"
93 }
94