{
  "$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 = og_def(p['links'], none) -%}\n{%- set v_current = og_def(p['current'], '') -%}\n{%- set v_side = og_def(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        {{ og_include('blocks/menu-entry.html.j2', {'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)}) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': 'flex-wrap', 'Attrs': og_attrs(['data-slot', 'nav-links'])}, 'children': c_2}) }}\n{%- endif %}\n",
      "path": "blocks/nav-links.html.j2",
      "target": "blocks/nav-links.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "nav-links",
  "registryDependencies": [
    "group",
    "menu-entry",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Nav Links",
  "type": "registry:component"
}
