wp/wp-includes/blocks/button/block.json
changeset 16 a86126ab1dd4
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
       
     1 {
       
     2 	"name": "core/button",
       
     3 	"category": "design",
       
     4 	"parent": [
       
     5 		"core/buttons"
       
     6 	],
       
     7 	"attributes": {
       
     8 		"url": {
       
     9 			"type": "string",
       
    10 			"source": "attribute",
       
    11 			"selector": "a",
       
    12 			"attribute": "href"
       
    13 		},
       
    14 		"title": {
       
    15 			"type": "string",
       
    16 			"source": "attribute",
       
    17 			"selector": "a",
       
    18 			"attribute": "title"
       
    19 		},
       
    20 		"text": {
       
    21 			"type": "string",
       
    22 			"source": "html",
       
    23 			"selector": "a"
       
    24 		},
       
    25 		"linkTarget": {
       
    26 			"type": "string",
       
    27 			"source": "attribute",
       
    28 			"selector": "a",
       
    29 			"attribute": "target"
       
    30 		},
       
    31 		"rel": {
       
    32 			"type": "string",
       
    33 			"source": "attribute",
       
    34 			"selector": "a",
       
    35 			"attribute": "rel"
       
    36 		},
       
    37 		"placeholder": {
       
    38 			"type": "string"
       
    39 		},
       
    40 		"borderRadius": {
       
    41 			"type": "number"
       
    42 		},
       
    43 		"style": {
       
    44 			"type": "object"
       
    45 		},
       
    46 		"backgroundColor": {
       
    47 			"type": "string"
       
    48 		},
       
    49 		"textColor": {
       
    50 			"type": "string"
       
    51 		},
       
    52 		"gradient": {
       
    53 			"type": "string"
       
    54 		}
       
    55 	},
       
    56 	"supports": {
       
    57 		"anchor": true,
       
    58 		"align": true,
       
    59 		"alignWide": false,
       
    60 		"reusable": false,
       
    61 		"lightBlockWrapper": true
       
    62 	}
       
    63 }