wp/wp-includes/blocks/button/block.json
author ymh <ymh.work@gmail.com>
Tue, 15 Dec 2020 15:52:01 +0100
changeset 17 34716fd837a4
parent 16 a86126ab1dd4
child 18 be944660c56a
permissions -rw-r--r--
add ressources for a live page

{
	"name": "core/button",
	"category": "design",
	"parent": [
		"core/buttons"
	],
	"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"
		},
		"borderRadius": {
			"type": "number"
		},
		"style": {
			"type": "object"
		},
		"backgroundColor": {
			"type": "string"
		},
		"textColor": {
			"type": "string"
		},
		"gradient": {
			"type": "string"
		}
	},
	"supports": {
		"anchor": true,
		"align": true,
		"alignWide": false,
		"reusable": false,
		"lightBlockWrapper": true
	}
}