{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A centered row of topic pills: links where a topic has an address, else buttons. tone inverse: on a dark band\n * with an icon per topic; default: outlined.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Button, Group } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { urlOf } from \"../utils\";\nimport type { Topic } from \"./topic-chips.types\";\n\nexport type TopicChipsProps = {\n  topics: Topic[];\n  tone?: \"default\" | \"inverse\";\n};\n\nexport function TopicChips({ topics, tone = \"default\" }: TopicChipsProps) {\n  return (\n    <Group gap=\"2\" align=\"center\" justify=\"center\" class=\"flex-wrap\" data-slot=\"hero-topics\">\n      <For each={topics ?? []}>{(topic) => (\n        <>\n          {((tone as string) === \"inverse\") ? (\n            <Button\n              href={urlOf(topic.href)}\n              variant=\"ghost\"\n              size=\"sm\"\n              class=\"gap-2 text-background inset-ring-background/30 hover:bg-background/10\"\n            >\n              {topic.icon ? (\n                <LucideIcon name={topic.icon} size={16} />\n              ) : null}\n              {topic.name}\n            </Button>\n          ) : (\n            <Button href={urlOf(topic.href)} variant=\"outline\" size=\"sm\">\n              {topic.name}\n            </Button>\n          )}\n        </>\n      )}</For>\n    </Group>\n  );\n}\n",
      "path": "components/topic-chips.tsx",
      "target": "components/topic-chips.tsx"
    },
    {
      "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\nexport type Topic = {\n  id: string;\n  name: string;\n  icon: string;\n  href?: string;\n};\n",
      "path": "components/topic-chips.types.ts",
      "target": "components/topic-chips.types.ts"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "topic-chips",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "utils"
  ],
  "runtime": "solid",
  "title": "Topic Chips",
  "type": "registry:component"
}
