{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A centered row of topic pills: links where a topic has an address, else buttons. tone inverse: on a dark band with an icon per topic; default: outlined.",
  "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/topic-chips.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// TopicChipsProps are the props of TopicChips; the values are the JSON shapes of the TypeScript props.\ntype TopicChipsProps struct {\n\tTopics any `json:\"topics\"`\n\tTone any `json:\"tone\"`\n}\n\n// A centered row of topic pills: links where a topic has an address, else buttons. tone inverse: on a dark band with an icon per topic; default: outlined.\ntempl TopicChips(p TopicChipsProps) {\n\t{{ vTopics := p.Topics }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", Justify: \"center\", BoxProps: box.BoxProps{Class: \"flex-wrap\", Attrs: uiutils.Attrs(\"data-slot\", \"hero-topics\")}}) {\n\t\tfor _, vTopic := range uiutils.L(vTopics) {\n\t\t\tif uiutils.Eq(vTone, \"inverse\") {\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", ButtonProps: button.ButtonProps{Href: uiutils.URL(uiutils.Get(vTopic, \"href\"), false), Class: \"gap-2 text-background inset-ring-background/30 hover:bg-background/10\"}}) {\n\t\t\t\t\tif uiutils.T(uiutils.Get(vTopic, \"icon\")) {\n\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vTopic, \"icon\")), Size: 16})\n\t\t\t\t\t}\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vTopic, \"name\")) }\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"sm\", ButtonProps: button.ButtonProps{Href: uiutils.URL(uiutils.Get(vTopic, \"href\"), false)}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vTopic, \"name\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/topic-chips.templ",
      "target": "blocks/topic-chips.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "topic-chips",
  "registryDependencies": [
    "button",
    "group",
    "kit-box",
    "kit-button",
    "lucide-icon",
    "utils"
  ],
  "runtime": "templ",
  "title": "Topic Chips",
  "type": "registry:component"
}
