{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Post Mini Card 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<!-- A small post card of PostShowcase: the picture, the category, the title and the author with the reading time. -->\n<script lang=\"ts\">\nimport type { Post, PostLabels } from \"../blocks/post-card.types\";\n\nexport type PostMiniCardProps = {\n  p: Post;\n  labels: PostLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport { tpl } from \"../utils\";\n\nconst { p, labels } = defineProps<PostMiniCardProps>();\n</script>\n\n<template>\n  <Stack gap=\"2\" align=\"stretch\" class=\"rounded bg-card inset-ring inset-ring-border p-2\" data-slot=\"post-mini\">\n    <MediaFrame :alt=\"p.title\" :src=\"p.image\" />\n    <Stack gap=\"2\" align=\"start\" class=\"p-2\">\n      <Badge variant=\"secondary\" size=\"sm\">\n        {{ p.category }}\n      </Badge>\n      <Title :as=\"3\" size=\"sm\" weight=\"semibold\">\n        {{ p.title }}\n      </Title>\n      <Text size=\"xs\" class=\"text-muted-foreground\">\n        {{ tpl(\"{0} · {1}\", p.author, tpl(labels.minutes, p.minutes)) }}\n      </Text>\n    </Stack>\n  </Stack>\n</template>\n",
      "path": "components/post-mini-card.vue",
      "target": "components/post-mini-card.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "post-mini-card",
  "registryDependencies": [
    "badge",
    "media-frame",
    "post-card",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Post Mini Card",
  "type": "registry:component"
}
