{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Post Feature 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<!--\n  The featured post of PostShowcase: the category, the title, the excerpt, the author with the date and reading\n  time, and a wide read button.\n-->\n<script lang=\"ts\">\nimport type { Post, PostLabels } from \"../blocks/post-card.types\";\n\nexport type PostFeatureProps = {\n  p: Post;\n  labels: PostLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Button from \"../compose/Button.vue\";\nimport Group from \"../compose/Group.vue\";\nimport LucideIcon from \"../icons/LucideIcon.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, urlOf } from \"../utils\";\n\nconst { p, labels } = defineProps<PostFeatureProps>();\n</script>\n\n<template>\n  <Stack gap=\"4\" align=\"stretch\" class=\"border-t border-border pt-6\" data-slot=\"post-feature\">\n    <Badge variant=\"secondary\" size=\"sm\" class=\"w-fit\">\n      {{ p.category }}\n    </Badge>\n    <Title :as=\"3\" size=\"xl\" weight=\"semibold\">\n      {{ p.title }}\n    </Title>\n    <Text size=\"sm\" class=\"text-muted-foreground\">\n      {{ p.excerpt }}\n    </Text>\n    <Group gap=\"4\" align=\"center\">\n      <MediaFrame :alt=\"p.author\" ratio=\"1/1\" class=\"size-10 shrink-0 rounded-full\" />\n      <Stack gap=\"0\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {{ p.author }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ tpl(\"{0} · {1}\", p.date, tpl(labels.minutes, p.minutes)) }}\n        </Text>\n      </Stack>\n    </Group>\n    <Button variant=\"default\" size=\"default\" :href=\"urlOf(p.href)\" class=\"w-full gap-2\">\n      {{ labels.read }}\n      <LucideIcon name=\"arrow-right\" :size=\"16\" />\n    </Button>\n  </Stack>\n</template>\n",
      "path": "components/post-feature.vue",
      "target": "components/post-feature.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "post-feature",
  "registryDependencies": [
    "badge",
    "button",
    "group",
    "lucide-icon",
    "media-frame",
    "post-card",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Post Feature",
  "type": "registry:component"
}
