gutenberg_scaffold_block
Scaffold a complete Gutenberg block with generated block.json, edit.js, save.js, index.js, styles, and PHP registration.
Instructions
Generate a complete Gutenberg block: block.json, edit.js, save.js, index.js, editor.scss, style.scss and PHP registration. For server-side rendered blocks, use gutenberg_scaffold_dynamic_block instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| blockName | Yes | Block name in kebab-case (e.g., "testimonial-card") | |
| blockTitle | Yes | Block display title (e.g., "Testimonial Card") | |
| category | No | Block category: text, media, design, widgets, theme, embed (default: widgets) | |
| textDomain | Yes | Plugin text domain | |
| icon | No | Dashicons name without dashicons- prefix (default: block-default) | |
| description | No | Block description | |
| attributes | No | Block attributes as "name:type" pairs, comma-separated (e.g., "title:string,content:string,rating:number,showImage:boolean") |