Skip to content

Instantly share code, notes, and snippets.

@aaronrobertshaw
Last active June 21, 2021 10:26
Show Gist options
  • Save aaronrobertshaw/ea7337b794bc44d7017bf4e82988c756 to your computer and use it in GitHub Desktop.
Save aaronrobertshaw/ea7337b794bc44d7017bf4e82988c756 to your computer and use it in GitHub Desktop.
Group block.json with support for height and width enabled
{
"apiVersion": 2,
"name": "core/group",
"title": "Group",
"category": "design",
"description": "Combine blocks into a group.",
"keywords": [ "container", "wrapper", "row", "section" ],
"textdomain": "default",
"attributes": {
"tagName": {
"type": "string",
"default": "div"
},
"templateLock": {
"enum": [ "all", "insert", false ]
}
},
"supports": {
"align": [ "wide", "full" ],
"anchor": true,
"html": false,
"color": {
"gradients": true,
"link": true
},
"__experimentalDimensions": {
"height": true,
"width": "segmented",
"__experimentalDefaultControls": {
"width": true
}
},
"spacing": {
"margin": true,
"padding": true,
"__experimentalDefaultControls": {
"padding": true
}
},
"__experimentalBorder": {
"color": true,
"radius": true,
"style": true,
"width": true
},
"__experimentalLayout": true
},
"editorStyle": "wp-block-group-editor",
"style": "wp-block-group"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment