wp/wp-includes/blocks/buttons/block.json
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 {
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"apiVersion": 2,
     3 	"apiVersion": 2,
     3 	"name": "core/buttons",
     4 	"name": "core/buttons",
     4 	"title": "Buttons",
     5 	"title": "Buttons",
     5 	"category": "design",
     6 	"category": "design",
     6 	"description": "Prompt visitors to take action with a group of button-style links.",
     7 	"description": "Prompt visitors to take action with a group of button-style links.",
     7 	"keywords": [ "link" ],
     8 	"keywords": [ "link" ],
     8 	"textdomain": "default",
     9 	"textdomain": "default",
     9 	"attributes": {
       
    10 		"contentJustification": {
       
    11 			"type": "string"
       
    12 		},
       
    13 		"orientation": {
       
    14 			"type": "string",
       
    15 			"default": "horizontal"
       
    16 		}
       
    17 	},
       
    18 	"supports": {
    10 	"supports": {
    19 		"anchor": true,
    11 		"anchor": true,
    20 		"align": [ "wide", "full" ]
    12 		"align": [ "wide", "full" ],
       
    13 		"__experimentalExposeControlsToChildren": true,
       
    14 		"spacing": {
       
    15 			"blockGap": true,
       
    16 			"margin": [ "top", "bottom" ],
       
    17 			"__experimentalDefaultControls": {
       
    18 				"blockGap": true
       
    19 			}
       
    20 		},
       
    21 		"__experimentalLayout": {
       
    22 			"allowSwitching": false,
       
    23 			"allowInheriting": false,
       
    24 			"default": {
       
    25 				"type": "flex"
       
    26 			}
       
    27 		}
    21 	},
    28 	},
    22 	"editorStyle": "wp-block-buttons-editor",
    29 	"editorStyle": "wp-block-buttons-editor",
    23 	"style": "wp-block-buttons"
    30 	"style": "wp-block-buttons"
    24 }
    31 }