block.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/group",
  5. "title": "Group",
  6. "category": "design",
  7. "description": "Gather blocks in a layout container.",
  8. "keywords": [ "container", "wrapper", "row", "section" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "tagName": {
  12. "type": "string",
  13. "default": "div"
  14. },
  15. "templateLock": {
  16. "type": [ "string", "boolean" ],
  17. "enum": [ "all", "insert", "contentOnly", false ]
  18. }
  19. },
  20. "supports": {
  21. "__experimentalOnEnter": true,
  22. "__experimentalSettings": true,
  23. "align": [ "wide", "full" ],
  24. "anchor": true,
  25. "ariaLabel": true,
  26. "html": false,
  27. "color": {
  28. "gradients": true,
  29. "link": true,
  30. "__experimentalDefaultControls": {
  31. "background": true,
  32. "text": true
  33. }
  34. },
  35. "spacing": {
  36. "margin": [ "top", "bottom" ],
  37. "padding": true,
  38. "blockGap": true,
  39. "__experimentalDefaultControls": {
  40. "padding": true,
  41. "blockGap": true
  42. }
  43. },
  44. "__experimentalBorder": {
  45. "color": true,
  46. "radius": true,
  47. "style": true,
  48. "width": true,
  49. "__experimentalDefaultControls": {
  50. "color": true,
  51. "radius": true,
  52. "style": true,
  53. "width": true
  54. }
  55. },
  56. "typography": {
  57. "fontSize": true,
  58. "lineHeight": true,
  59. "__experimentalFontFamily": true,
  60. "__experimentalFontWeight": true,
  61. "__experimentalFontStyle": true,
  62. "__experimentalTextTransform": true,
  63. "__experimentalTextDecoration": true,
  64. "__experimentalLetterSpacing": true,
  65. "__experimentalDefaultControls": {
  66. "fontSize": true
  67. }
  68. },
  69. "__experimentalLayout": true
  70. },
  71. "editorStyle": "wp-block-group-editor",
  72. "style": "wp-block-group"
  73. }