{
  "$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{var $v_label = ($p['label'] ?? null)}\n{var $v_tabs = ($p['tabs'] ?? null)}\n{var $v_current = ($p['current'] ?? '')}\n{var $v_labels = ($p['labels'] ?? 'show')}\n{var $v_position = ($p['position'] ?? 'static')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{if og_t(og_gt(og_len($v_tabs), 0))}\n  {capture $c_5}\n    {capture $c_4}\n      {foreach og_l($v_tabs) as $v_tab}\n        {capture $c_3}\n          {capture $c_2}\n            {=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_tab, ['icon'])), 'size' => 20])|noescape}\n            {capture $c_1}\n              {=og_text(og_get($v_tab, ['name']))}\n            {/capture}\n            {=og_include('compose/Inline.latte', ['class' => og_s((og_t(og_eq($v_labels, 'hide')) ? 'sr-only' : '')), 'children' => (string) $c_1])|noescape}\n          {/capture}\n          {=og_include('blocks/menu-entry.latte', ['p' => ['href' => og_get($v_tab, ['href']), 'className' => og_cnv([og_cnv(['flex flex-col items-center gap-2 py-2 text-xs', (og_t(og_eq(og_get($v_tab, ['id']), $v_current)) ? 'font-semibold text-primary' : 'text-muted-foreground')])]), 'current' => og_eq(og_get($v_tab, ['id']), $v_current), 'testid' => 'item'], 'children' => og_markup($c_2)])|noescape}\n        {/capture}\n        {=og_include('compose/ListItem.latte', ['attrs' => og_attrs(['data-slot', 'tabs-row']), 'children' => (string) $c_3])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/List.latte', ['class' => 'm-0 grid list-none grid-flow-col auto-cols-fr p-0', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_4])|noescape}\n  {/capture}\n  {=og_include('compose/Block.latte', ['tag' => 'nav', 'class' => og_s(og_cnv(['mx-auto w-full max-w-md border-t border-border', (og_t(og_eq($v_tone, 'muted')) ? 'bg-muted' : 'bg-background'), (og_t(og_eq($v_position, 'sticky')) ? 'sticky bottom-0 z-40' : '')])), 'attrs' => og_attrs(['aria-label', og_coalesce([$v_landmarkLabel, $v_label]), 'data-position', $v_position, 'data-slot', 'bottom-nav']), 'children' => (string) $c_5])|noescape}\n{/if}\n",
      "path": "blocks/bottom-nav.latte",
      "target": "blocks/bottom-nav.latte"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "bottom-nav",
  "registryDependencies": [
    "block",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "menu-entry",
    "utils"
  ],
  "runtime": "latte",
  "title": "Bottom Nav",
  "type": "registry:block"
}
