{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The row inside NavItem: the icon and the label on the left, the right slot (or an empty 20 by 20 frame) on the right.",
  "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/patterns/nav-item-row.json\n    The row inside NavItem: the icon and the label on the left, the right slot (or an empty 20 by 20 frame) on the right.\n    Props (p): inner, reserveRight, icon (slot), right (slot); children: markup. -#}\n{%- set v_inner = (p.inner ?? null) -%}\n{%- set v_reserveRight = (p.reserveRight ?? false) -%}\n{%- set c_4 -%}\n  {%- set c_2 -%}\n    {{ og_slot((p.icon ?? null))|raw }}\n    {%- set c_1 -%}\n      {{ og_slot((children ?? null))|raw }}\n    {%- endset -%}\n    {{ include('compose/Inline.html.twig', {'class': 'min-w-0 flex-1 truncate in-data-[nav=collapsed]:hidden', 'attrs': og_attrs(['data-slot', 'nav-item-label']), 'children': c_1}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Inline.html.twig', {'class': 'flex min-w-0 flex-1 items-center gap-4 in-data-[nav=collapsed]:flex-none in-data-[nav=collapsed]:justify-center', 'attrs': og_attrs(['data-slot', 'nav-item-left']), 'children': c_2}, with_context = false) }}\n  {%- if og_t(((p.right ?? null) is not null)) %}\n    {%- set c_3 -%}\n      {{ og_slot((p.right ?? null))|raw }}\n    {%- endset -%}\n    {{ include('compose/Inline.html.twig', {'class': 'flex items-center gap-2 in-data-[nav=collapsed]:hidden', 'attrs': og_attrs(['data-slot', 'nav-item-right']), 'children': c_3}, with_context = false) }}\n  {%- elseif og_t(v_reserveRight) %}\n    {{ include('compose/Inline.html.twig', {'class': 'size-5 shrink-0 in-data-[nav=collapsed]:hidden', 'attrs': og_attrs(['data-slot', 'nav-item-right'])}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Inline.html.twig', {'class': og_s(v_inner), 'attrs': og_attrs(['data-slot', 'nav-item-content']), 'children': c_4}, with_context = false) }}\n",
      "path": "blocks/nav-item-row.html.twig",
      "target": "blocks/nav-item-row.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "nav-item-row",
  "registryDependencies": [
    "inline",
    "utils"
  ],
  "runtime": "twig",
  "title": "Nav Item Row",
  "type": "registry:component"
}
