{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "breadcrumb-trail",
  "type": "registry:item",
  "title": "Breadcrumb Trail",
  "description": "Where this page sits: a trail of links from the top, ending at the current page (marked `aria-current=\"page\"`, not a link). `items` is `[{ label, href }]`; the last is the current page.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "navigation"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/breadcrumb-trail.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/breadcrumb-trail.js",
      "content": "// Generated by zubra from breadcrumb-trail.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\n\nexport const tag = \"breadcrumb-trail\";\n\nexport default $define(tag, {\n  props: {\n    \"items\": { attribute: \"items\", default: [], required: false },\n    \"label\": { attribute: \"label\", default: \"Breadcrumb\", required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [],\n  events: [],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (breadcrumb-trail) to ([data-zb-slotted=\\\"breadcrumb-trail\\\"]) {\\n  :scope { display: block; }\\n  ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }\\n  li { display: inline-flex; align-items: center; gap: 0.35rem; }\\n  li + li::before { content: \\\"\\\"; width: 0.4rem; height: 0.4rem; border: solid color-mix(in oklab, var(--muted-foreground, #71717a) 70%, transparent); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin-right: 0.2rem; }\\n  a { color: color-mix(in oklab, var(--muted-foreground, #71717a) 75%, var(--foreground, #18181b)); text-decoration: none; border-radius: calc(var(--radius, 0.625rem) * 0.3); }\\n  a:hover { color: var(--foreground, #18181b); text-decoration: underline; text-underline-offset: 3px; }\\n  a:focus-visible { outline: 2px solid var(--ring, #a1a1aa); outline-offset: 2px; }\\n  .crumbs-current { color: var(--foreground, #18181b); font-weight: 600; }\\n}\\n}\\n\",\n  template: \"\\n  <nav>\\n    <ol>\\n      <!--[--><!--]-->\\n    </ol>\\n  </nav>\\n\",\n  setup($p, $emit) {\n    return [\n      { path: [0], attribute: \"aria-label\", value: () => $p.label },\n      { path: [0, 0, 0], each: () => $p.items, key: (item, i) => (`${$r(i)}-${$r(item).label}`), block: { template: \"\\n        <li>\\n          <!--[--><!--]-->\\n        </li>\\n      \", parts: (item, i) => [{ path: [0, 0], when: () => ($r(i) === ($p.items.length - 1)), blocks: [{ template: \"<span class=\\\"crumbs-current\\\" aria-current=\\\"page\\\"></span>\", parts: () => [{ path: [0], text: () => $t($r(item).label) }] }, { template: \"<a></a>\", parts: () => [{ path: [0], attribute: \"href\", url: true, value: () => $r(item).href }, { path: [0], text: () => $t($r(item).label) }] }] }] } },\n    ];\n  },\n});\n"
    }
  ]
}
