@wordpress/block-library
Version:
Block library for the WordPress editor.
72 lines (71 loc) • 1.48 kB
JSON
{
"apiVersion": 3,
"$schema": "https://schemas.wp.org/trunk/block.json",
"name": "core/icon",
"title": "Icon",
"__experimental": true,
"category": "media",
"description": "Insert an SVG icon.",
"keywords": [ "icon", "svg" ],
"textdomain": "default",
"attributes": {
"icon": {
"type": "string",
"role": "content"
}
},
"supports": {
"anchor": true,
"ariaLabel": {
"__experimentalSkipSerialization": true
},
"align": [ "left", "center", "right" ],
"html": false,
"color": {
"background": true,
"text": true,
"__experimentalSkipSerialization": true
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"color": true,
"radius": true,
"style": true,
"width": true,
"__experimentalSkipSerialization": true,
"__experimentalDefaultControls": {
"color": false,
"radius": false,
"style": false,
"width": false
}
},
"spacing": {
"padding": true,
"margin": true,
"__experimentalSkipSerialization": [ "padding" ],
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"dimensions": {
"width": true,
"__experimentalSkipSerialization": [ "width" ],
"__experimentalDefaultControls": {
"width": true
}
}
},
"selectors": {
"root": ".wp-block-icon",
"dimensions": {
"root": ".wp-block-icon svg",
"width": ".wp-block-icon svg"
}
},
"style": "wp-block-icon",
"editorStyle": "wp-block-icon-editor"
}