PluginProbe
Gutenberg / 12.1.0
Gutenberg v12.1.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 7.4.0 All 402 releases
gutenberg / build / block-library / blocks / button / block.json

block.json in Gutenberg 12.1.0, at build/block-library/blocks/button/block.json

93 lines 1.8 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/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 "url": {
13 "type": "string",
14 "source": "attribute",
15 "selector": "a",
16 "attribute": "href"
17 },
18 "title": {
19 "type": "string",
20 "source": "attribute",
21 "selector": "a",
22 "attribute": "title"
23 },
24 "text": {
25 "type": "string",
26 "source": "html",
27 "selector": "a"
28 },
29 "linkTarget": {
30 "type": "string",
31 "source": "attribute",
32 "selector": "a",
33 "attribute": "target"
34 },
35 "rel": {
36 "type": "string",
37 "source": "attribute",
38 "selector": "a",
39 "attribute": "rel"
40 },
41 "placeholder": {
42 "type": "string"
43 },
44 "backgroundColor": {
45 "type": "string"
46 },
47 "textColor": {
48 "type": "string"
49 },
50 "gradient": {
51 "type": "string"
52 },
53 "width": {
54 "type": "number"
55 }
56 },
57 "supports": {
58 "anchor": true,
59 "align": true,
60 "alignWide": false,
61 "color": {
62 "__experimentalSkipSerialization": true,
63 "gradients": true
64 },
65 "typography": {
66 "fontSize": true,
67 "__experimentalFontFamily": true,
68 "__experimentalDefaultControls": {
69 "fontSize": true
70 }
71 },
72 "reusable": false,
73 "spacing": {
74 "__experimentalSkipSerialization": true,
75 "padding": [ "horizontal", "vertical" ],
76 "__experimentalDefaultControls": {
77 "padding": true
78 }
79 },
80 "__experimentalBorder": {
81 "radius": true,
82 "__experimentalSkipSerialization": true
83 },
84 "__experimentalSelector": ".wp-block-button__link"
85 },
86 "styles": [
87 { "name": "fill", "label": "Fill", "isDefault": true },
88 { "name": "outline", "label": "Outline" }
89 ],
90 "editorStyle": "wp-block-button-editor",
91 "style": "wp-block-button"
92 }
93