{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The links of a top bar in a row; the current one carries aria-current. side: all, or the first or second half of the list.",
  "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/nav-links.json\n    The links of a top bar in a row; the current one carries aria-current. side: all, or the first or second half of the list.\n    Props (p): links, current, side. -#}\n{%- set v_links = (p.links ?? null) -%}\n{%- set v_current = (p.current ?? '') -%}\n{%- set v_side = (p.side ?? 'all') -%}\n{%- set v_count = og_len(v_links) -%}\n{%- if og_t(og_gt(og_len(v_links), 0)) %}\n  {%- set c_2 -%}\n    {%- for v_l in og_l(v_links) %}\n      {%- set v_i = loop.index0 -%}\n      {%- if og_t(og_or([og_eq(v_side, 'all'), og_eq(og_lt(og_mul(v_i, 2), v_count), og_eq(v_side, 'left'))])) %}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_l, ['name'])) }}\n        {%- endset -%}\n        {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_l, ['href']), 'className': og_cnv(['text-sm']), 'current': og_eq(og_get(v_l, ['id']), v_current), 'testid': 'nav-link'}, 'children': og_markup(c_1)}, with_context = false) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': 'flex-wrap', 'attrs': og_attrs(['data-slot', 'nav-links']), 'children': c_2}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/nav-links.html.twig",
      "target": "blocks/nav-links.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "nav-links",
  "registryDependencies": [
    "group",
    "menu-entry",
    "utils"
  ],
  "runtime": "twig",
  "title": "Nav Links",
  "type": "registry:component"
}
