{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Media Topics 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<!-- The topics of MediaList as card rows: a glyph tile, the name, the count and an arrow. -->\n<script lang=\"ts\">\nimport type { MediaExtras, MediaListLabels } from \"../blocks/media-list.types\";\n\nexport type MediaTopicsProps = {\n  extras: MediaExtras;\n  labels: MediaListLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Inline from \"../compose/Inline.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport MenuEntry from \"../components/menu-entry.vue\";\nimport { tpl } from \"../utils\";\n\nconst { extras, labels } = defineProps<MediaTopicsProps>();\n</script>\n\n<template>\n  <Stack gap=\"4\" align=\"stretch\" data-slot=\"media-topics\">\n    <Text size=\"sm\" weight=\"semibold\">\n      {{ labels.list }}\n    </Text>\n    <template v-for=\"(c, i) in extras.topics\" :key=\"c.id\">\n      <MenuEntry v-if=\"(i < 5)\"\n        :href=\"c.href\"\n        class=\"rounded bg-card inset-ring inset-ring-border flex w-full items-center gap-4 p-4\"\n        variant=\"block\"\n        testid=\"media-topic\"\n        :block=\"true\"\n      >\n        <Inline class=\"flex size-8 shrink-0 items-center justify-center rounded bg-primary text-primary-foreground\">\n          <LucideIcon :name=\"c.icon\" :size=\"16\" />\n        </Inline>\n        <Stack gap=\"0\" class=\"min-w-0 flex-1\">\n          <Text size=\"sm\" weight=\"semibold\">\n            {{ c.name }}\n          </Text>\n          <Text size=\"xs\" class=\"text-muted-foreground\">\n            {{ tpl(labels.count, c.count) }}\n          </Text>\n        </Stack>\n        <LucideIcon name=\"arrow-right\" :size=\"16\" />\n      </MenuEntry>\n    </template>\n  </Stack>\n</template>\n",
      "path": "components/media-topics.vue",
      "target": "components/media-topics.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "media-topics",
  "registryDependencies": [
    "inline",
    "lucide-icon",
    "media-list",
    "menu-entry",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Media Topics",
  "type": "registry:component"
}
