wp/wp-includes/blocks/search/block.json
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
     1 {
     1 {
       
     2 	"apiVersion": 2,
     2 	"name": "core/search",
     3 	"name": "core/search",
       
     4 	"title": "Search",
     3 	"category": "widgets",
     5 	"category": "widgets",
       
     6 	"description": "Help visitors find your content.",
       
     7 	"keywords": [ "find" ],
       
     8 	"textdomain": "default",
     4 	"attributes": {
     9 	"attributes": {
     5 		"align": {
    10 		"label": {
     6 			"type": "string",
    11 			"type": "string",
     7 			"enum": [
    12 			"__experimentalRole": "content"
     8 				"left",
       
     9 				"center",
       
    10 				"right",
       
    11 				"wide",
       
    12 				"full"
       
    13 			]
       
    14 		},
    13 		},
    15 		"className": {
    14 		"showLabel": {
    16 			"type": "string"
    15 			"type": "boolean",
    17 		},
    16 			"default": true
    18 		"label": {
       
    19 			"type": "string"
       
    20 		},
    17 		},
    21 		"placeholder": {
    18 		"placeholder": {
    22 			"type": "string",
    19 			"type": "string",
    23 			"default": ""
    20 			"default": "",
       
    21 			"__experimentalRole": "content"
       
    22 		},
       
    23 		"width": {
       
    24 			"type": "number"
       
    25 		},
       
    26 		"widthUnit": {
       
    27 			"type": "string"
    24 		},
    28 		},
    25 		"buttonText": {
    29 		"buttonText": {
    26 			"type": "string"
    30 			"type": "string",
       
    31 			"__experimentalRole": "content"
       
    32 		},
       
    33 		"buttonPosition": {
       
    34 			"type": "string",
       
    35 			"default": "button-outside"
       
    36 		},
       
    37 		"buttonUseIcon": {
       
    38 			"type": "boolean",
       
    39 			"default": false
    27 		}
    40 		}
    28 	},
    41 	},
    29 	"supports": {
    42 	"supports": {
    30 		"align": true,
    43 		"align": [ "left", "center", "right" ],
       
    44 		"__experimentalBorder": {
       
    45 			"radius": true,
       
    46 			"__experimentalSkipSerialization": true
       
    47 		},
    31 		"html": false
    48 		"html": false
    32 	}
    49 	},
       
    50 	"editorStyle": "wp-block-search-editor",
       
    51 	"style": "wp-block-search"
    33 }
    52 }