{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "An app-style tab bar for a phone: an icon over a name, the current tab marked.",
  "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/bottom-nav.json\n    An app-style tab bar for a phone: an icon over a label per tab, the current one marked. Axes: labels (show, hide: icons only with the name hidden), position (static, sticky: stays at the bottom of the page), tone.\n    Props (p): label, tabs, current, labels, position, tone, landmarkLabel. -#}\n{%- set v_label = og_def(p['label'], none) -%}\n{%- set v_tabs = og_def(p['tabs'], none) -%}\n{%- set v_current = og_def(p['current'], '') -%}\n{%- set v_labels = og_def(p['labels'], 'show') -%}\n{%- set v_position = og_def(p['position'], 'static') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- if og_t(og_gt(og_len(v_tabs), 0)) %}\n  {%- set c_5 -%}\n    {%- set c_4 -%}\n      {%- for v_tab in og_l(v_tabs) %}\n        {%- set c_3 -%}\n          {%- set c_2 -%}\n            {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_tab, ['icon'])), 'Size': 20}}) }}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_tab, ['name'])) }}\n            {%- endset -%}\n            {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(('sr-only' if og_t(og_eq(v_labels, 'hide')) else ''))}, 'children': c_1}) }}\n          {%- endset -%}\n          {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_tab, ['href']), 'className': og_cnv([og_cnv(['flex flex-col items-center gap-2 py-2 text-xs', ('font-semibold text-primary' if og_t(og_eq(og_get(v_tab, ['id']), v_current)) else 'text-muted-foreground')])]), 'current': og_eq(og_get(v_tab, ['id']), v_current), 'testid': 'item'}, 'children': og_markup(c_2)}) }}\n        {%- endset -%}\n        {{ og_include('compose/list-item.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'tabs-row'])}, 'children': c_3}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 grid list-none grid-flow-col auto-cols-fr p-0', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_4}) }}\n  {%- endset -%}\n  {{ og_include('compose/block.html.j2', {'p': {'Tag': 'nav', 'Class': og_s(og_cnv(['mx-auto w-full max-w-md border-t border-border', ('bg-muted' if og_t(og_eq(v_tone, 'muted')) else 'bg-background'), ('sticky bottom-0 z-40' if og_t(og_eq(v_position, 'sticky')) else '')])), 'Attrs': og_attrs(['aria-label', og_coalesce([v_landmarkLabel, v_label]), 'data-position', v_position, 'data-slot', 'bottom-nav'])}, 'children': c_5}) }}\n{%- endif %}\n",
      "path": "blocks/bottom-nav.html.j2",
      "target": "blocks/bottom-nav.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "bottom-nav",
  "registryDependencies": [
    "block",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "menu-entry",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Bottom Nav",
  "type": "registry:block"
}
