{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/menu-section-nav.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/link\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// MenuSectionNavProps are the props of MenuSectionNav; the values are the JSON shapes of the TypeScript props.\ntype MenuSectionNavProps struct {\n\tLabel any `json:\"label\"`\n\tSections any `json:\"sections\"`\n\tPrefix any `json:\"prefix\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The sections of a menu as chips that jump to them: a nav landmark named by `label`, one link per section to `#<prefix>-<key>`.\ntempl MenuSectionNav(p MenuSectionNavProps) {\n\t{{ vLabel := p.Label }}\n\t{{ vSections := p.Sections }}\n\t{{ vPrefix := p.Prefix }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"nav\", Attrs: uiutils.Attrs(\"aria-label\", uiutils.Coalesce(vLandmarkLabel, vLabel), \"data-slot\", \"section-nav\")}}) {\n\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Tag: \"ul\", Class: \"flex flex-wrap gap-2\"}}) {\n\t\t\tfor _, vS := range uiutils.L(vSections) {\n\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"sections-row\")}}) {\n\t\t\t\t\t@compose.Link(compose.LinkProps{Variant: \"nav\", Size: \"sm\", LinkProps: link.LinkProps{Href: uiutils.URL(uiutils.Tpl(\"#{0}-{1}\", vPrefix, uiutils.Get(vS, \"key\")), false), Class: \"h-8 rounded px-4 inset-ring inset-ring-border\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vS, \"title\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/menu-section-nav.templ",
      "target": "blocks/menu-section-nav.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "menu-section-nav",
  "registryDependencies": [
    "block",
    "kit-box",
    "kit-link",
    "link",
    "list",
    "list-item",
    "utils"
  ],
  "runtime": "templ",
  "title": "Menu Section Nav",
  "type": "registry:component"
}
