{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n\n  export 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 lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Link from \"../compose/Link.svelte\";\n  import List from \"../compose/List.svelte\";\n  import ListItem from \"../compose/ListItem.svelte\";\n  import { tpl, urlOf } from \"../utils\";\n\n  let { label, sections, prefix, landmarkLabel }: MenuSectionNavProps = $props();\n</script>\n\n<Block tag=\"nav\" aria-label={(landmarkLabel ?? label)} data-slot=\"section-nav\">\n  <List tag=\"ul\" class=\"flex flex-wrap gap-2\">\n    {#each sections as s (s.id)}\n      <ListItem 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    {/each}\n  </List>\n</Block>\n",
      "path": "components/menu-section-nav.svelte",
      "target": "components/menu-section-nav.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "menu-section-nav",
  "registryDependencies": [
    "block",
    "link",
    "list",
    "list-item",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Menu Section Nav",
  "type": "registry:component"
}
