kollapsminoriteten/wp-includes/blocks/button/block.json

106 lines
2.2 KiB
JSON
Raw Normal View History

2020-09-15 14:29:22 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2020-12-10 14:06:04 +01:00
"apiVersion": 2,
2020-09-15 14:29:22 +02:00
"name": "core/button",
2021-07-23 11:58:50 +02:00
"title": "Button",
2020-09-15 14:29:22 +02:00
"category": "design",
2021-07-23 11:58:50 +02:00
"parent": [ "core/buttons" ],
"description": "Prompt visitors to take action with a button-style link.",
"keywords": [ "link" ],
"textdomain": "default",
2020-09-15 14:29:22 +02:00
"attributes": {
"url": {
"type": "string",
"source": "attribute",
"selector": "a",
"attribute": "href"
},
"title": {
"type": "string",
"source": "attribute",
"selector": "a",
"attribute": "title"
},
"text": {
"type": "string",
"source": "html",
"selector": "a"
},
"linkTarget": {
"type": "string",
"source": "attribute",
"selector": "a",
"attribute": "target"
},
"rel": {
"type": "string",
"source": "attribute",
"selector": "a",
"attribute": "rel"
},
"placeholder": {
"type": "string"
},
"backgroundColor": {
"type": "string"
},
"textColor": {
"type": "string"
},
"gradient": {
"type": "string"
2021-04-27 08:32:47 +02:00
},
"width": {
"type": "number"
2020-09-15 14:29:22 +02:00
}
},
"supports": {
"anchor": true,
"align": true,
"alignWide": false,
2021-07-23 11:58:50 +02:00
"color": {
"__experimentalSkipSerialization": true,
2022-06-16 14:03:35 +02:00
"gradients": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
2021-07-23 11:58:50 +02:00
},
"typography": {
"fontSize": true,
2022-12-15 17:47:31 +01:00
"lineHeight": true,
2022-04-02 10:26:41 +02:00
"__experimentalFontFamily": true,
2022-12-15 17:47:31 +01:00
"__experimentalFontWeight": true,
"__experimentalFontStyle": true,
"__experimentalTextTransform": true,
"__experimentalTextDecoration": true,
"__experimentalLetterSpacing": true,
2022-04-02 10:26:41 +02:00
"__experimentalDefaultControls": {
"fontSize": true
}
2021-07-23 11:58:50 +02:00
},
2020-09-15 14:29:22 +02:00
"reusable": false,
2022-04-02 10:26:41 +02:00
"spacing": {
"__experimentalSkipSerialization": true,
"padding": [ "horizontal", "vertical" ],
"__experimentalDefaultControls": {
"padding": true
}
},
2021-07-23 11:58:50 +02:00
"__experimentalBorder": {
"radius": true,
2022-06-16 14:03:35 +02:00
"__experimentalSkipSerialization": true,
"__experimentalDefaultControls": {
"radius": true
}
2021-07-23 11:58:50 +02:00
},
2022-12-15 17:47:31 +01:00
"__experimentalSelector": ".wp-block-button .wp-block-button__link"
2021-04-27 08:32:47 +02:00
},
2021-07-23 11:58:50 +02:00
"styles": [
{ "name": "fill", "label": "Fill", "isDefault": true },
{ "name": "outline", "label": "Outline" }
],
2021-04-27 08:32:47 +02:00
"editorStyle": "wp-block-button-editor",
"style": "wp-block-button"
2020-09-15 14:29:22 +02:00
}