Skip to content

Instantly share code, notes, and snippets.

@aaronrobertshaw
Created April 7, 2021 06:00
Show Gist options
  • Save aaronrobertshaw/42baddd8cc2c707420059669269c74e8 to your computer and use it in GitHub Desktop.
Save aaronrobertshaw/42baddd8cc2c707420059669269c74e8 to your computer and use it in GitHub Desktop.
Block JSON with custom margin sides
{
"apiVersion": 2,
"name": "core/group",
"category": "design",
"attributes": {
"tagName": {
"type": "string",
"default": "div"
},
"templateLock": {
"type": "string"
}
},
"supports": {
"align": [
"wide",
"full"
],
"anchor": true,
"html": false,
"color": {
"gradients": true,
"link": true
},
"spacing": {
"padding": true,
"margin": {
"top": true,
"right": false,
"bottom": true,
"left": false
}
},
"__experimentalBorder": {
"radius": 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