{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Breadcrumb: Box nav > ol > li, Link (href, not disabled) or Text span; aria-current=\"page\" on the current item.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.\n    Breadcrumb: Box nav > ol > li, Link or Text span. Props (p): Items [{label, href, current, disabled}], AriaLabel, Class, Attrs. -#}\n{%- set lis %}{% for it in p['Items'] or [] %}{% set c = compose_join(['text-sm', 'font-medium' if it['current'] else ('text-muted-foreground' if it['disabled'] else 'text-primary underline-offset-4 hover:underline')]) %}{% set a = {'aria-current': 'page'} if it['current'] else {} %}{% set inner %}{% if it['href'] and not it['disabled'] %}{% with p = {'Href': it['href'], 'Class': c, 'Attrs': a}, children = it['label']|e %}{% include 'ui/link/link.html.j2' %}{% endwith %}{% else %}{% with p = {'Tag': 'span', 'Class': c, 'Attrs': a}, children = it['label']|e %}{% include 'ui/text/text.html.j2' %}{% endwith %}{% endif %}{% endset %}{% with p = {'Tag': 'li', 'Class': 'inline-flex items-center'}, children = inner %}{% include 'ui/box/box.html.j2' %}{% endwith %}{% endfor %}{% endset %}\n{%- set ol %}{% with p = {'Tag': 'ol', 'Class': 'flex flex-wrap items-center gap-2'}, children = lis %}{% include 'ui/box/box.html.j2' %}{% endwith %}{% endset %}\n{%- set a = {'aria-label': p['AriaLabel'] or 'Breadcrumb'} %}{%- set _ = a.update(p['Attrs'] or {}) %}\n{%- with p = {'Tag': 'nav', 'Class': compose_join(['text-sm', p['Class']]), 'Attrs': a}, children = ol %}{% include 'ui/box/box.html.j2' %}{% endwith %}",
      "path": "compose/breadcrumb.html.j2",
      "target": "compose/breadcrumb.html.j2"
    }
  ],
  "meta": {
    "category": "primitives",
    "kind": "primitive",
    "tags": [
      "jinja2",
      "primitive"
    ]
  },
  "name": "breadcrumb",
  "registryDependencies": [
    "kit-box",
    "kit-link",
    "kit-text",
    "recipes",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Breadcrumb",
  "type": "registry:ui"
}
