{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Menu Section Nav component",
  "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  The sections of a menu as chips that jump to them: a nav landmark named by `label`, one link per section to\n  `#<prefix>-<key>`.\n-->\n<script lang=\"ts\">\nexport type MenuSectionNavProps = {\n  label: string;\n  sections: Array<{ id: string; key: string; title: string }>;\n  prefix: string;\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Link from \"../compose/Link.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport { tpl, urlOf } from \"../utils\";\n\nconst { label, sections, prefix, landmarkLabel } = defineProps<MenuSectionNavProps>();\n</script>\n\n<template>\n  <Block tag=\"nav\" :aria-label=\"(landmarkLabel ?? label)\" data-slot=\"section-nav\">\n    <List tag=\"ul\" class=\"flex flex-wrap gap-2\">\n      <ListItem v-for=\"s in sections\" :key=\"s.id\" data-slot=\"sections-row\">\n        <Link\n          :href=\"urlOf(tpl('#{0}-{1}', prefix, s.key))\"\n          variant=\"nav\"\n          size=\"sm\"\n          class=\"h-8 rounded px-4 inset-ring inset-ring-border\"\n        >\n          {{ s.title }}\n        </Link>\n      </ListItem>\n    </List>\n  </Block>\n</template>\n",
      "path": "components/menu-section-nav.vue",
      "target": "components/menu-section-nav.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "menu-section-nav",
  "registryDependencies": [
    "block",
    "link",
    "list",
    "list-item",
    "utils"
  ],
  "runtime": "vue",
  "title": "Menu Section Nav",
  "type": "registry:component"
}
