block.json 916 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/separator",
  5. "title": "Separator",
  6. "category": "design",
  7. "description": "Create a break between ideas or sections with a horizontal separator.",
  8. "keywords": [ "horizontal-line", "hr", "divider" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "opacity": {
  12. "type": "string",
  13. "default": "alpha-channel"
  14. }
  15. },
  16. "supports": {
  17. "anchor": true,
  18. "align": [ "center", "wide", "full" ],
  19. "color": {
  20. "__experimentalSkipSerialization": true,
  21. "gradients": true,
  22. "background": true,
  23. "text": false,
  24. "__experimentalDefaultControls": {
  25. "background": true
  26. }
  27. }
  28. },
  29. "styles": [
  30. { "name": "default", "label": "Default", "isDefault": true },
  31. { "name": "wide", "label": "Wide Line" },
  32. { "name": "dots", "label": "Dots" }
  33. ],
  34. "editorStyle": "wp-block-separator-editor",
  35. "style": "wp-block-separator"
  36. }