{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The featured post of PostShowcase: the category, the title, the excerpt, the author with the date and reading time, and a wide read button.",
  "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 */\nimport { type JSX } from \"solid-js\";\nimport { Badge, Button, Group, Stack, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { tpl, urlOf } from \"../utils\";\nimport type { Post, PostLabels } from \"../blocks/post-card.types\";\n\nexport type PostFeatureProps = {\n  p: Post;\n  labels: PostLabels;\n};\n\nexport function PostFeature({ p, labels }: PostFeatureProps) {\n  return (\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  );\n}\n",
      "path": "components/post-feature.tsx",
      "target": "components/post-feature.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "post-feature",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "media-frame",
    "post-card",
    "utils"
  ],
  "runtime": "solid",
  "title": "Post Feature",
  "type": "registry:component"
}
