{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Topic Chips 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\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"
    },
    {
      "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-->\n<script lang=\"ts\">\nimport type { Topic } from \"./topic-chips.types\";\n\nexport type TopicChipsProps = {\n  topics: Topic[];\n  tone?: \"default\" | \"inverse\";\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Button from \"../compose/Button.vue\";\nimport Group from \"../compose/Group.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport { urlOf } from \"../utils\";\n\nconst { topics, tone = \"default\" } = defineProps<TopicChipsProps>();\n</script>\n\n<template>\n  <Group gap=\"2\" align=\"center\" justify=\"center\" class=\"flex-wrap\" data-slot=\"hero-topics\">\n    <template v-for=\"topic in topics\" :key=\"topic.id\">\n      <Button v-if=\"((tone as string) === 'inverse')\"\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        <LucideIcon v-if=\"topic.icon\" :name=\"topic.icon\" :size=\"16\" />\n        {{ topic.name }}\n      </Button>\n      <Button v-else :href=\"urlOf(topic.href)\" variant=\"outline\" size=\"sm\">\n        {{ topic.name }}\n      </Button>\n    </template>\n  </Group>\n</template>\n",
      "path": "components/topic-chips.vue",
      "target": "components/topic-chips.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "topic-chips",
  "registryDependencies": [
    "button",
    "group",
    "lucide-icon",
    "utils"
  ],
  "runtime": "vue",
  "title": "Topic Chips",
  "type": "registry:component"
}
