{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The breadcrumbs of an inner page: the parent pages (links where they have an href) separated by chevrons; the last entry is the current page and is not a link.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The breadcrumbs of an inner page: the parent pages (links where they have an href) separated by chevrons; the\n * last entry is the current page and is not a link.\n */\nimport { type ReactNode } from \"react\";\nimport { Block, Inline, Link, List, ListItem } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { urlOf } from \"../utils\";\nimport type { NavLink } from \"../blocks/nav-bar.types\";\n\nexport type PageCrumbsProps = {\n  label: string;\n  crumbs: NavLink[];\n  landmarkLabel?: string;\n};\n\nexport function PageCrumbs({ label, crumbs, landmarkLabel }: PageCrumbsProps) {\n  const last = (crumbs?.length ?? 0) - 1;\n  return (\n    <Block tag=\"nav\" aria-label={(landmarkLabel ?? label)} data-slot=\"crumbs\">\n      <List className=\"m-0 flex list-none flex-wrap items-center gap-2 p-0 text-sm text-muted-foreground\">\n        {(crumbs ?? []).map((c, i) => (\n          <ListItem key={c.id} className=\"flex items-center gap-2\" data-slot=\"crumbs-row\">\n            {(i < last) ? (\n              <>\n                {c.href ? (\n                  <Link href={urlOf(c.href)} variant=\"muted\" size=\"sm\" data-slot=\"crumb\">\n                    {c.name}\n                  </Link>\n                ) : (\n                  <Inline data-slot=\"crumb\">\n                    {c.name}\n                  </Inline>\n                )}\n                <LucideIcon name=\"chevron-right\" size={16} />\n              </>\n            ) : (\n              <Inline className=\"font-medium text-foreground\" aria-current=\"page\">\n                {c.name}\n              </Inline>\n            )}\n          </ListItem>\n        ))}\n      </List>\n    </Block>\n  );\n}\n",
      "path": "components/page-crumbs.tsx",
      "target": "components/page-crumbs.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "page-crumbs",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "nav-bar",
    "utils"
  ],
  "runtime": "react",
  "title": "Page Crumbs",
  "type": "registry:component"
}
