{
  "$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 = og_def(p['label'], none) -%}\n{%- set v_crumbs = og_def(p['crumbs'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\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            {{ og_include('compose/link.html.j2', {'p': {'Href': og_url(og_s(og_get(v_c, ['href']))), 'Variant': 'muted', 'Size': 'sm', 'Attrs': og_attrs(['data-slot', 'crumb'])}, 'children': c_1}) }}\n          {%- else %}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_c, ['name'])) }}\n            {%- endset -%}\n            {{ og_include('compose/inline.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'crumb'])}, 'children': c_2}) }}\n          {%- endif %}\n          {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'chevron-right', 'Size': 16}}) }}\n        {%- else %}\n          {%- set c_3 -%}\n            {{ og_text(og_get(v_c, ['name'])) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-medium text-foreground', 'Attrs': og_attrs(['aria-current', 'page'])}, 'children': c_3}) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center gap-2', 'Attrs': og_attrs(['data-slot', 'crumbs-row'])}, 'children': c_4}) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-wrap items-center gap-2 p-0 text-sm text-muted-foreground'}, 'children': c_5}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'nav', 'Attrs': og_attrs(['aria-label', og_coalesce([v_landmarkLabel, v_label]), 'data-slot', 'crumbs'])}, 'children': c_6}) }}\n",
      "path": "blocks/page-crumbs.html.j2",
      "target": "blocks/page-crumbs.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "page-crumbs",
  "registryDependencies": [
    "block",
    "inline",
    "link",
    "list",
    "list-item",
    "lucide-icon",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Page Crumbs",
  "type": "registry:component"
}
