{
  "$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-->\n<script lang=\"ts\">\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</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport MenuEntry from \"../components/menu-entry.vue\";\nimport { cn } from \"../utils\";\n\nconst {\n  label,\n  tabs,\n  current = \"\",\n  labels = \"show\",\n  position = \"static\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<BottomNavProps>();\n</script>\n\n<template>\n  <Block v-if=\"((tabs?.length ?? 0) > 0)\"\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      <ListItem v-for=\"tab in tabs\" :key=\"tab.id\" 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    </List>\n  </Block>\n</template>\n",
      "path": "blocks/bottom-nav.vue",
      "target": "blocks/bottom-nav.vue"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "navigation",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "bottom-nav",
  "registryDependencies": [
    "block",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "menu-entry",
    "nav-bar",
    "utils"
  ],
  "runtime": "vue",
  "title": "Bottom Nav",
  "type": "registry:block"
}
