{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Page Crumbs component",
  "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-->\n<script lang=\"ts\">\nimport type { NavLink } from \"../blocks/nav-bar.types\";\n\nexport type PageCrumbsProps = {\n  label: string;\n  crumbs: NavLink[];\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport Block from \"../compose/Block.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport Link from \"../compose/Link.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport { urlOf } from \"../utils\";\n\nconst { label, crumbs, landmarkLabel } = defineProps<PageCrumbsProps>();\nconst last = computed(() => (crumbs?.length ?? 0) - 1);\n</script>\n\n<template>\n  <Block tag=\"nav\" :aria-label=\"(landmarkLabel ?? label)\" data-slot=\"crumbs\">\n    <List class=\"m-0 flex list-none flex-wrap items-center gap-2 p-0 text-sm text-muted-foreground\">\n      <ListItem v-for=\"(c, i) in crumbs\" :key=\"c.id\" class=\"flex items-center gap-2\" data-slot=\"crumbs-row\">\n        <template v-if=\"(i < last)\">\n          <Link v-if=\"c.href\" :href=\"urlOf(c.href)\" variant=\"muted\" size=\"sm\" data-slot=\"crumb\">\n            {{ c.name }}\n          </Link>\n          <Inline v-else data-slot=\"crumb\">\n            {{ c.name }}\n          </Inline>\n          <LucideIcon name=\"chevron-right\" :size=\"16\" />\n        </template>\n        <Inline v-else class=\"font-medium text-foreground\" aria-current=\"page\">\n          {{ c.name }}\n        </Inline>\n      </ListItem>\n    </List>\n  </Block>\n</template>\n",
      "path": "components/page-crumbs.vue",
      "target": "components/page-crumbs.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "page-crumbs",
  "registryDependencies": [
    "block",
    "inline",
    "link",
    "list",
    "list-item",
    "lucide-icon",
    "nav-bar",
    "utils"
  ],
  "runtime": "vue",
  "title": "Page Crumbs",
  "type": "registry:component"
}
