@wordpress/scripts
Version:
Collection of reusable scripts for WordPress development.
34 lines (33 loc) • 661 B
JSON
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "my-plugin/custom-header",
"title": "Custom Header",
"category": "text",
"icon": "heading",
"description": "A custom header block with color options.",
"attributes": {
"content": {
"type": "string",
"source": "html",
"selector": "h2"
},
"textColor": {
"type": "string"
},
"backgroundColor": {
"type": "string"
}
},
"supports": {
"html": false,
"color": {
"background": true,
"text": true
}
},
"textdomain": "my-plugin",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
}