block.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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", false ]
  18. }
  19. },
  20. "supports": {
  21. "align": [ "wide", "full" ],
  22. "anchor": true,
  23. "html": false,
  24. "color": {
  25. "gradients": true,
  26. "link": true,
  27. "__experimentalDefaultControls": {
  28. "background": true,
  29. "text": true
  30. }
  31. },
  32. "spacing": {
  33. "margin": [ "top", "bottom" ],
  34. "padding": true,
  35. "blockGap": true,
  36. "__experimentalDefaultControls": {
  37. "padding": true,
  38. "blockGap": true
  39. }
  40. },
  41. "__experimentalBorder": {
  42. "color": true,
  43. "radius": true,
  44. "style": true,
  45. "width": true,
  46. "__experimentalDefaultControls": {
  47. "color": true,
  48. "radius": true,
  49. "style": true,
  50. "width": true
  51. }
  52. },
  53. "typography": {
  54. "fontSize": true,
  55. "lineHeight": true,
  56. "__experimentalFontStyle": true,
  57. "__experimentalFontWeight": true,
  58. "__experimentalLetterSpacing": true,
  59. "__experimentalTextTransform": true,
  60. "__experimentalDefaultControls": {
  61. "fontSize": true
  62. }
  63. },
  64. "__experimentalLayout": true
  65. },
  66. "editorStyle": "wp-block-group-editor",
  67. "style": "wp-block-group"
  68. }