block.json Scaffolder
Generate the metadata file for a custom Gutenberg block.
Block Configuration
Lowercase, hyphens only (e.g., my-custom-block)
Attributes
Supports
Generated block.json
Usage: Save as
block.json in your block's directory and register with
register_block_type()
Features
- Generate block.json metadata for Gutenberg blocks
- Configure attributes with types and defaults
- Set block supports (align, color, spacing, etc.)
- Valid JSON output
- Ready for block registration
How to Use
- Enter your block name (lowercase, hyphens)
- Provide title and description
- Add attributes your block will use
- Select which features the block supports
- Click "Generate block.json"
- Save in your block directory and register the block