{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "version": "20250908",
  "name": "x3p0/breadcrumbs",
  "title": "Breadcrumbs",
  "description": "Add a breadcrumb trail back to the site homepage. Breadcrumb items appear as placeholders in the editor and will populate with the correct data on the site front end.",
  "category": "widgets",
  "keywords": [
    "breadcrumb",
    "trail",
    "navigation"
  ],
  "textdomain": "x3p0-breadcrumbs",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php",
  "attributes": {
    "justifyContent": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ],
      "default": ""
    },
    "showHomeLabel": {
      "type": "boolean",
      "default": true
    },
    "showOnHomepage": {
      "type": "boolean",
      "default": false
    },
    "showTrailStart": {
      "type": "boolean",
      "default": true
    },
    "showTrailEnd": {
      "type": "boolean",
      "default": true
    },
    "homeIcon": {
      "type": "string",
      "default": ""
    },
    "labels": {
      "type": "object",
      "default": {},
      "role": "content"
    },
    "linkTrailEnd": {
      "type": "boolean",
      "default": false
    },
    "mapRewriteTags": {
      "type": "object",
      "default": {
        "post": true
      }
    },
    "markup": {
      "type": "string",
      "enum": [
        "html",
        "microdata",
        "rdfa"
      ],
      "default": "rdfa"
    },
    "postTaxonomy": {
      "type": "object",
      "default": {}
    },
    "separatorIcon": {
      "type": "string",
      "default": "svg-chevron"
    }
  },
  "supports": {
    "anchor": true,
    "align": true,
    "ariaLabel": true,
    "html": false,
    "__experimentalBorder": {
      "radius": true,
      "color": true,
      "width": true,
      "style": true,
      "__experimentalDefaultControls": {
        "width": true,
        "color": true
      }
    },
    "__experimentalStyle": {
      "css": "&.is-layout-flex { gap: var(--wp--custom--x-3-p-0-breadcrumbs--gap, 0.5rem); }",
      "spacing": {
        "blockGap": "var(--wp--custom--x-3-p-0-breadcrumbs--gap, 0.5rem)"
      }
    },
    "color": {
      "link": true,
      "gradients": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true,
        "link": true
      }
    },
    "layout": {
      "allowCustomContentAndWideSize": false,
      "allowEditing": false,
      "allowInheriting": false,
      "allowJustification": false,
      "allowOrientation": false,
      "allowSizingOnChildren": false,
      "allowSwitching": false,
      "allowVerticalAlignment": false,
      "default": {
        "type": "flex",
        "flexWrap": "wrap",
        "orientation": "horizontal"
      }
    },
    "shadow": true,
    "spacing": {
      "blockGap": true,
      "margin": true,
      "padding": true,
      "__experimentalDefaultControls": {
        "padding": true
      }
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontStyle": true,
      "__experimentalFontWeight": true,
      "__experimentalFontFamily": true,
      "__experimentalLetterSpacing": true,
      "__experimentalTextTransform": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "example": {}
}