block.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/archives",
  5. "title": "Archives",
  6. "category": "widgets",
  7. "description": "Display a date archive of your posts.",
  8. "textdomain": "default",
  9. "attributes": {
  10. "displayAsDropdown": {
  11. "type": "boolean",
  12. "default": false
  13. },
  14. "showLabel": {
  15. "type": "boolean",
  16. "default": true
  17. },
  18. "showPostCounts": {
  19. "type": "boolean",
  20. "default": false
  21. },
  22. "type": {
  23. "type": "string",
  24. "default": "monthly"
  25. }
  26. },
  27. "supports": {
  28. "align": true,
  29. "html": false,
  30. "spacing": {
  31. "margin": true,
  32. "padding": true
  33. },
  34. "typography": {
  35. "fontSize": true,
  36. "lineHeight": true,
  37. "__experimentalFontFamily": true,
  38. "__experimentalFontWeight": true,
  39. "__experimentalFontStyle": true,
  40. "__experimentalTextTransform": true,
  41. "__experimentalTextDecoration": true,
  42. "__experimentalLetterSpacing": true,
  43. "__experimentalDefaultControls": {
  44. "fontSize": true
  45. }
  46. }
  47. },
  48. "editorStyle": "wp-block-archives-editor"
  49. }