{
  "$schema": "https://design.senvenli.com/schema/component.full.json",
  "kind": "component",
  "family": "navigation",
  "status": "alpha",
  "import": "@senvenli/react/navigation",
  "name": "breadcrumbs",
  "title": "Breadcrumbs",
  "exports": [
    "Breadcrumbs",
    "Breadcrumb"
  ],
  "description": "Shows where a page sits in a hierarchy, collapsing middle levels into a menu when long.",
  "keywords": [
    "breadcrumbs",
    "compound",
    "hierarchy",
    "path",
    "trail"
  ],
  "usage": {
    "when": [
      "Pages nested two or more levels deep."
    ],
    "instead": [
      {
        "use": "link",
        "when": "One way back to the parent page is enough."
      },
      {
        "use": "stepper",
        "when": "The levels are steps of a flow."
      }
    ]
  },
  "a11y": {
    "builtIn": [
      "A navigation landmark; the current page has aria-current."
    ],
    "youProvide": [
      "With children: a textValue on a Breadcrumb whose label is not plain text, for the folded menu."
    ]
  },
  "related": [
    "sidebar"
  ],
  "genui": {
    "expose": true,
    "description": "The path to the current page. items are {label, href?}; the last item is the current page.",
    "props": [
      "items"
    ],
    "children": "none",
    "schema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "label": {
                "type": "string"
              },
              "href": {
                "type": "string"
              },
              "icon": {
                "type": "string",
                "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
              }
            },
            "required": [
              "label"
            ]
          },
          "description": "From the section root (\"Projects\"), never \"Home\", to the current page. Leave it out to compose `Breadcrumb`s\nas children instead."
        }
      }
    }
  },
  "source": [
    "src/navigation/breadcrumbs.tsx"
  ],
  "props": {
    "Breadcrumbs": [
      {
        "name": "items",
        "type": "readonly BreadcrumbItem[]",
        "required": false,
        "origin": "own",
        "description": "From the section root (\"Projects\"), never \"Home\", to the current page. Leave it out to compose `Breadcrumb`s\nas children instead.",
        "schema": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "label": {
                "type": "string"
              },
              "href": {
                "type": "string"
              },
              "icon": {
                "type": "string",
                "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
              }
            },
            "required": [
              "label"
            ]
          }
        }
      },
      {
        "name": "children",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "With no `items`: `Breadcrumb`s from the root to the current page (the last one)."
      },
      {
        "name": "aria-label",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "Names the navigation landmark; \"Location\" by default.",
        "schema": {
          "type": "string"
        }
      }
    ],
    "Breadcrumb": [
      {
        "name": "href",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "A page; leave it out on the last one, the current page.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "icon",
        "type": "IconName",
        "required": false,
        "origin": "own",
        "schema": {
          "type": "string",
          "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
        }
      },
      {
        "name": "children",
        "type": "React.ReactNode",
        "required": true,
        "origin": "own",
        "description": "The level's name. It may hold more than text; then give `textValue` for the folded \"…\" menu."
      },
      {
        "name": "textValue",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "The words for the \"…\" menu when this level folds; the label itself when it is plain text.",
        "schema": {
          "type": "string"
        }
      }
    ]
  },
  "tokens": [
    "ds-border-focused",
    "ds-icon-subtle",
    "ds-radius-small",
    "ds-space-050",
    "ds-text",
    "ds-text-subtle"
  ],
  "strings": [
    "location",
    "newTab",
    "showHiddenLevels"
  ],
  "quality": {
    "tests": true,
    "a11y": false,
    "docs": false,
    "visual": false,
    "dark": false,
    "rtl": false,
    "mcp": true,
    "generic": true
  }
}
