PluginProbe
Gutenberg / 22.4.4
Gutenberg v22.4.4
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 / scripts / block-library / button / block.json

block.json in Gutenberg 22.4.4, at build/scripts/block-library/button/block.json

151 lines 3.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": "core/button",
5 "title": "Button",
6 "category": "design",
7 "parent": [ "core/buttons" ],
8 "description": "Prompt visitors to take action with a button-style link.",
9 "keywords": [ "link" ],
10 "textdomain": "default",
11 "attributes": {
12 "tagName": {
13 "type": "string",
14 "enum": [ "a", "button" ],
15 "default": "a"
16 },
17 "type": {
18 "type": "string",
19 "default": "button"
20 },
21 "url": {
22 "type": "string",
23 "source": "attribute",
24 "selector": "a",
25 "attribute": "href",
26 "role": "content"
27 },
28 "title": {
29 "type": "string",
30 "source": "attribute",
31 "selector": "a,button",
32 "attribute": "title",
33 "role": "content"
34 },
35 "text": {
36 "type": "rich-text",
37 "source": "rich-text",
38 "selector": "a,button",
39 "role": "content"
40 },
41 "linkTarget": {
42 "type": "string",
43 "source": "attribute",
44 "selector": "a",
45 "attribute": "target",
46 "role": "content"
47 },
48 "rel": {
49 "type": "string",
50 "source": "attribute",
51 "selector": "a",
52 "attribute": "rel",
53 "role": "content"
54 },
55 "placeholder": {
56 "type": "string"
57 },
58 "backgroundColor": {
59 "type": "string"
60 },
61 "textColor": {
62 "type": "string"
63 },
64 "gradient": {
65 "type": "string"
66 },
67 "width": {
68 "type": "number"
69 }
70 },
71 "supports": {
72 "anchor": true,
73 "splitting": true,
74 "align": false,
75 "alignWide": false,
76 "color": {
77 "__experimentalSkipSerialization": true,
78 "gradients": true,
79 "__experimentalDefaultControls": {
80 "background": true,
81 "text": true
82 }
83 },
84 "typography": {
85 "__experimentalSkipSerialization": [
86 "fontSize",
87 "lineHeight",
88 "textAlign",
89 "fontFamily",
90 "fontWeight",
91 "fontStyle",
92 "textTransform",
93 "textDecoration",
94 "letterSpacing"
95 ],
96 "fontSize": true,
97 "lineHeight": true,
98 "textAlign": true,
99 "__experimentalFontFamily": true,
100 "__experimentalFontWeight": true,
101 "__experimentalFontStyle": true,
102 "__experimentalTextTransform": true,
103 "__experimentalTextDecoration": true,
104 "__experimentalLetterSpacing": true,
105 "__experimentalWritingMode": true,
106 "__experimentalDefaultControls": {
107 "fontSize": true
108 }
109 },
110 "reusable": false,
111 "shadow": {
112 "__experimentalSkipSerialization": true
113 },
114 "spacing": {
115 "__experimentalSkipSerialization": true,
116 "padding": [ "horizontal", "vertical" ],
117 "__experimentalDefaultControls": {
118 "padding": true
119 }
120 },
121 "__experimentalBorder": {
122 "color": true,
123 "radius": true,
124 "style": true,
125 "width": true,
126 "__experimentalSkipSerialization": true,
127 "__experimentalDefaultControls": {
128 "color": true,
129 "radius": true,
130 "style": true,
131 "width": true
132 }
133 },
134 "interactivity": {
135 "clientNavigation": true
136 }
137 },
138 "styles": [
139 { "name": "fill", "label": "Fill", "isDefault": true },
140 { "name": "outline", "label": "Outline" }
141 ],
142 "editorStyle": "wp-block-button-editor",
143 "style": "wp-block-button",
144 "selectors": {
145 "root": ".wp-block-button .wp-block-button__link",
146 "typography": {
147 "writingMode": ".wp-block-button"
148 }
149 }
150 }
151