暂无描述

block.json 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "apiVersion": 2,
  3. "name": "core/button",
  4. "title": "Button",
  5. "category": "design",
  6. "parent": [ "core/buttons" ],
  7. "description": "Prompt visitors to take action with a button-style link.",
  8. "keywords": [ "link" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "url": {
  12. "type": "string",
  13. "source": "attribute",
  14. "selector": "a",
  15. "attribute": "href"
  16. },
  17. "title": {
  18. "type": "string",
  19. "source": "attribute",
  20. "selector": "a",
  21. "attribute": "title"
  22. },
  23. "text": {
  24. "type": "string",
  25. "source": "html",
  26. "selector": "a"
  27. },
  28. "linkTarget": {
  29. "type": "string",
  30. "source": "attribute",
  31. "selector": "a",
  32. "attribute": "target"
  33. },
  34. "rel": {
  35. "type": "string",
  36. "source": "attribute",
  37. "selector": "a",
  38. "attribute": "rel"
  39. },
  40. "placeholder": {
  41. "type": "string"
  42. },
  43. "backgroundColor": {
  44. "type": "string"
  45. },
  46. "textColor": {
  47. "type": "string"
  48. },
  49. "gradient": {
  50. "type": "string"
  51. },
  52. "width": {
  53. "type": "number"
  54. }
  55. },
  56. "supports": {
  57. "anchor": true,
  58. "align": true,
  59. "alignWide": false,
  60. "color": {
  61. "__experimentalSkipSerialization": true,
  62. "gradients": true
  63. },
  64. "typography": {
  65. "fontSize": true,
  66. "__experimentalFontFamily": true
  67. },
  68. "reusable": false,
  69. "__experimentalBorder": {
  70. "radius": true,
  71. "__experimentalSkipSerialization": true
  72. },
  73. "__experimentalSelector": ".wp-block-button__link"
  74. },
  75. "styles": [
  76. { "name": "fill", "label": "Fill", "isDefault": true },
  77. { "name": "outline", "label": "Outline" }
  78. ],
  79. "editorStyle": "wp-block-button-editor",
  80. "style": "wp-block-button"
  81. }