{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * An app-style tab bar for a phone: an icon over a label per tab, the current one marked. Axes: labels (show,\n * hide: icons only with the name hidden), position (static, sticky: stays at the bottom of the page), tone.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Block, Inline, List, ListItem } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport { cn } from \"../utils\";\nimport type { NavLink } from \"./nav-bar.types\";\n\nexport type BottomNavProps = {\n  label: string;\n  tabs: NavLink[];\n  current?: string;\n  labels?: \"show\" | \"hide\";\n  position?: \"static\" | \"sticky\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n\nexport function BottomNav({\n  label,\n  tabs,\n  current = \"\",\n  labels = \"show\",\n  position = \"static\",\n  tone = \"default\",\n  landmarkLabel,\n}: BottomNavProps) {\n  return (\n    <>\n      {((tabs?.length ?? 0) > 0) ? (\n        <Block\n          tag=\"nav\"\n          class={cn(\n            \"mx-auto w-full max-w-md border-t border-border\",\n            (((tone as string) === \"muted\") ? \"bg-muted\" : \"bg-background\"),\n            (((position as string) === \"sticky\") ? \"sticky bottom-0 z-40\" : \"\")\n          )}\n          aria-label={(landmarkLabel ?? label)}\n          data-position={position}\n          data-slot=\"bottom-nav\"\n        >\n          <List class=\"m-0 grid list-none grid-flow-col auto-cols-fr p-0\" data-slot=\"items\">\n            <For each={tabs ?? []}>{(tab) => (\n              <ListItem data-slot=\"tabs-row\">\n                <MenuEntry\n                  href={tab.href}\n                  class={cn(\n                    \"flex flex-col items-center gap-2 py-2 text-xs\",\n                    ((tab.id === current) ? \"font-semibold text-primary\" : \"text-muted-foreground\")\n                  )}\n                  current={(tab.id === current)}\n                  testid=\"item\"\n                >\n                  <LucideIcon name={tab.icon} size={20} />\n                  <Inline class={(((labels as string) === \"hide\") ? \"sr-only\" : \"\")}>\n                    {tab.name}\n                  </Inline>\n                </MenuEntry>\n              </ListItem>\n            )}</For>\n          </List>\n        </Block>\n      ) : null}\n    </>\n  );\n}\n",
      "path": "blocks/bottom-nav.tsx",
      "target": "blocks/bottom-nav.tsx"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "bottom-nav",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "menu-entry",
    "nav-bar",
    "utils"
  ],
  "runtime": "solid",
  "title": "Bottom Nav",
  "type": "registry:block"
}
