{
  "$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{var $v_label = ($p['label'] ?? null)}\n{var $v_crumbs = ($p['crumbs'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{var $v_last = og_sub(og_len($v_crumbs), 1)}\n{capture $c_6}\n  {capture $c_5}\n    {foreach og_l($v_crumbs) as $v_c}\n      {var $v_i = $iterator->counter0}\n      {capture $c_4}\n        {if og_t(og_lt($v_i, $v_last))}\n          {if og_t(og_get($v_c, ['href']))}\n            {capture $c_1}\n              {=og_text(og_get($v_c, ['name']))}\n            {/capture}\n            {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_get($v_c, ['href']))), 'variant' => 'muted', 'size' => 'sm', 'attrs' => og_attrs(['data-slot', 'crumb']), 'children' => (string) $c_1])|noescape}\n          {else}\n            {capture $c_2}\n              {=og_text(og_get($v_c, ['name']))}\n            {/capture}\n            {=og_include('compose/Inline.latte', ['attrs' => og_attrs(['data-slot', 'crumb']), 'children' => (string) $c_2])|noescape}\n          {/if}\n          {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-right', 'size' => 16])|noescape}\n        {else}\n          {capture $c_3}\n            {=og_text(og_get($v_c, ['name']))}\n          {/capture}\n          {=og_include('compose/Inline.latte', ['class' => 'font-medium text-foreground', 'attrs' => og_attrs(['aria-current', 'page']), 'children' => (string) $c_3])|noescape}\n        {/if}\n      {/capture}\n      {=og_include('compose/ListItem.latte', ['class' => 'flex items-center gap-2', 'attrs' => og_attrs(['data-slot', 'crumbs-row']), 'children' => (string) $c_4])|noescape}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-wrap items-center gap-2 p-0 text-sm text-muted-foreground', 'children' => (string) $c_5])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['tag' => 'nav', 'attrs' => og_attrs(['aria-label', og_coalesce([$v_landmarkLabel, $v_label]), 'data-slot', 'crumbs']), 'children' => (string) $c_6])|noescape}\n",
      "path": "blocks/page-crumbs.latte",
      "target": "blocks/page-crumbs.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "page-crumbs",
  "registryDependencies": [
    "block",
    "inline",
    "link",
    "list",
    "list-item",
    "lucide-icon",
    "utils"
  ],
  "runtime": "latte",
  "title": "Page Crumbs",
  "type": "registry:component"
}
