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

  1. Enter your block name (lowercase, hyphens)
  2. Provide title and description
  3. Add attributes your block will use
  4. Select which features the block supports
  5. Click "Generate block.json"
  6. Save in your block directory and register the block