{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/page-crumbs.json\n    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.\n    Props (p): label, crumbs, landmarkLabel. -#}\n{%- set v_label = (p.label ?? null) -%}\n{%- set v_crumbs = (p.crumbs ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set v_last = og_sub(og_len(v_crumbs), 1) -%}\n{%- set c_6 -%}\n  {%- set c_5 -%}\n    {%- for v_c in og_l(v_crumbs) %}\n      {%- set v_i = loop.index0 -%}\n      {%- set c_4 -%}\n        {%- if og_t(og_lt(v_i, v_last)) %}\n          {%- if og_t(og_get(v_c, ['href'])) %}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_c, ['name'])) }}\n            {%- endset -%}\n            {{ include('compose/Link.html.twig', {'href': og_url(og_s(og_get(v_c, ['href']))), 'variant': 'muted', 'size': 'sm', 'attrs': og_attrs(['data-slot', 'crumb']), 'children': c_1}, with_context = false) }}\n          {%- else %}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_c, ['name'])) }}\n            {%- endset -%}\n            {{ include('compose/Inline.html.twig', {'attrs': og_attrs(['data-slot', 'crumb']), 'children': c_2}, with_context = false) }}\n          {%- endif %}\n          {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-right', 'size': 16}, with_context = false) }}\n        {%- else %}\n          {%- set c_3 -%}\n            {{ og_text(og_get(v_c, ['name'])) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'font-medium text-foreground', 'attrs': og_attrs(['aria-current', 'page']), 'children': c_3}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('compose/ListItem.html.twig', {'class': 'flex items-center gap-2', 'attrs': og_attrs(['data-slot', 'crumbs-row']), 'children': c_4}, with_context = false) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-wrap items-center gap-2 p-0 text-sm text-muted-foreground', 'children': c_5}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'nav', 'attrs': og_attrs(['aria-label', og_coalesce([v_landmarkLabel, v_label]), 'data-slot', 'crumbs']), 'children': c_6}, with_context = false) }}\n",
      "path": "blocks/page-crumbs.html.twig",
      "target": "blocks/page-crumbs.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "page-crumbs",
  "registryDependencies": [
    "block",
    "inline",
    "link",
    "list",
    "list-item",
    "lucide-icon",
    "utils"
  ],
  "runtime": "twig",
  "title": "Page Crumbs",
  "type": "registry:component"
}
