Getting Started with Gutenberg Block Development
summary
Installs Node/npm, runs create-guten-block and NPM start to scaffold a plugin with block.js, editor.style.css, and style.css, then registers those assets and uses registerBlockType with attributes plus edit and save functions to wire data to the editor and the front end. Uses inspector controls and block toolbar for options, implements live preview via inline styles so editor and published output match, pulls patterns from the core examples repo, and warns against excessive options.
AI-written summary · about
chapters (24)
- 0:00Start
- 2:02Anatomy of a Block
- 2:23What's the Block
- 4:23Install Create Gutten Block
- 5:29Block Assets
- 5:52Editor Dot Style Sheet
- 7:00Dependencies
- 7:47Block Registration
- 8:36The Block Configuration Object
- 9:09Category
- 9:22Keywords
- 9:43Attributes
- 11:43Edit Function
- 12:15Attribute Properties
- 12:30Set Attributes Property
- 14:20Safe Function
- 17:05Button Block
- 17:32Set Attributes
- 18:01Live Previewing
- 20:38Block Alignment Toolbar
- 21:12Custom Controls
- 21:25Block Controls
- 23:20Resources
- 23:46Gutenberg Examples
