You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.5 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/navigation-link",
  5. "title": "Custom Link",
  6. "category": "design",
  7. "parent": [ "core/navigation" ],
  8. "description": "Add a page, link, or another item to your navigation.",
  9. "textdomain": "default",
  10. "attributes": {
  11. "label": {
  12. "type": "string"
  13. },
  14. "type": {
  15. "type": "string"
  16. },
  17. "description": {
  18. "type": "string"
  19. },
  20. "rel": {
  21. "type": "string"
  22. },
  23. "id": {
  24. "type": "number"
  25. },
  26. "opensInNewTab": {
  27. "type": "boolean",
  28. "default": false
  29. },
  30. "url": {
  31. "type": "string"
  32. },
  33. "title": {
  34. "type": "string"
  35. },
  36. "kind": {
  37. "type": "string"
  38. },
  39. "isTopLevelLink": {
  40. "type": "boolean"
  41. }
  42. },
  43. "usesContext": [
  44. "textColor",
  45. "customTextColor",
  46. "backgroundColor",
  47. "customBackgroundColor",
  48. "overlayTextColor",
  49. "customOverlayTextColor",
  50. "overlayBackgroundColor",
  51. "customOverlayBackgroundColor",
  52. "fontSize",
  53. "customFontSize",
  54. "showSubmenuIcon",
  55. "maxNestingLevel",
  56. "style"
  57. ],
  58. "supports": {
  59. "reusable": false,
  60. "html": false,
  61. "__experimentalSlashInserter": true,
  62. "typography": {
  63. "fontSize": true,
  64. "lineHeight": true,
  65. "__experimentalFontFamily": true,
  66. "__experimentalFontWeight": true,
  67. "__experimentalFontStyle": true,
  68. "__experimentalTextTransform": true,
  69. "__experimentalTextDecoration": true,
  70. "__experimentalLetterSpacing": true,
  71. "__experimentalDefaultControls": {
  72. "fontSize": true
  73. }
  74. }
  75. },
  76. "editorStyle": "wp-block-navigation-link-editor",
  77. "style": "wp-block-navigation-link"
  78. }