{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The sections of a menu as chips that jump to them: a nav landmark named by `label`, one link per section to `#<prefix>-<key>`.",
  "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 */\nimport { type ReactNode } from \"react\";\nimport { Block, Link, List, ListItem } from \"../compose\";\nimport { tpl, urlOf } from \"../utils\";\n\nexport type MenuSectionNavProps = {\n  label: string;\n  sections: Array<{ id: string; key: string; title: string }>;\n  prefix: string;\n  landmarkLabel?: string;\n};\n\nexport function MenuSectionNav({ label, sections, prefix, landmarkLabel }: MenuSectionNavProps) {\n  return (\n    <Block tag=\"nav\" aria-label={(landmarkLabel ?? label)} data-slot=\"section-nav\">\n      <List tag=\"ul\" className=\"flex flex-wrap gap-2\">\n        {(sections ?? []).map((s) => (\n          <ListItem 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              className=\"h-8 rounded px-4 inset-ring inset-ring-border\"\n            >\n              {s.title}\n            </Link>\n          </ListItem>\n        ))}\n      </List>\n    </Block>\n  );\n}\n",
      "path": "components/menu-section-nav.tsx",
      "target": "components/menu-section-nav.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "menu-section-nav",
  "registryDependencies": [
    "compose",
    "utils"
  ],
  "runtime": "react",
  "title": "Menu Section Nav",
  "type": "registry:component"
}
