block.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/search",
  5. "title": "Search",
  6. "category": "widgets",
  7. "description": "Help visitors find your content.",
  8. "keywords": [ "find" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "label": {
  12. "type": "string",
  13. "__experimentalRole": "content"
  14. },
  15. "showLabel": {
  16. "type": "boolean",
  17. "default": true
  18. },
  19. "placeholder": {
  20. "type": "string",
  21. "default": "",
  22. "__experimentalRole": "content"
  23. },
  24. "width": {
  25. "type": "number"
  26. },
  27. "widthUnit": {
  28. "type": "string"
  29. },
  30. "buttonText": {
  31. "type": "string",
  32. "__experimentalRole": "content"
  33. },
  34. "buttonPosition": {
  35. "type": "string",
  36. "default": "button-outside"
  37. },
  38. "buttonUseIcon": {
  39. "type": "boolean",
  40. "default": false
  41. },
  42. "query": {
  43. "type": "object",
  44. "default": {}
  45. }
  46. },
  47. "supports": {
  48. "align": [ "left", "center", "right" ],
  49. "color": {
  50. "gradients": true,
  51. "__experimentalSkipSerialization": true,
  52. "__experimentalDefaultControls": {
  53. "background": true,
  54. "text": true
  55. }
  56. },
  57. "typography": {
  58. "__experimentalSkipSerialization": true,
  59. "__experimentalSelector": ".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",
  60. "fontSize": true,
  61. "lineHeight": true,
  62. "__experimentalFontFamily": true,
  63. "__experimentalFontWeight": true,
  64. "__experimentalFontStyle": true,
  65. "__experimentalTextTransform": true,
  66. "__experimentalTextDecoration": true,
  67. "__experimentalLetterSpacing": true,
  68. "__experimentalDefaultControls": {
  69. "fontSize": true
  70. }
  71. },
  72. "__experimentalBorder": {
  73. "color": true,
  74. "radius": true,
  75. "width": true,
  76. "__experimentalSkipSerialization": true,
  77. "__experimentalDefaultControls": {
  78. "color": true,
  79. "radius": true,
  80. "width": true
  81. }
  82. },
  83. "html": false
  84. },
  85. "editorStyle": "wp-block-search-editor",
  86. "style": "wp-block-search"
  87. }