{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A small post card of PostShowcase: the picture, the category, the title and the author with the reading time.",
  "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. */\nimport { type JSX } from \"solid-js\";\nimport { Badge, Stack, Text, Title } from \"../compose\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { tpl } from \"../utils\";\nimport type { Post, PostLabels } from \"../blocks/post-card.types\";\n\nexport type PostMiniCardProps = {\n  p: Post;\n  labels: PostLabels;\n};\n\nexport function PostMiniCard({ p, labels }: PostMiniCardProps) {\n  return (\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  );\n}\n",
      "path": "components/post-mini-card.tsx",
      "target": "components/post-mini-card.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "post-mini-card",
  "registryDependencies": [
    "compose",
    "media-frame",
    "post-card",
    "utils"
  ],
  "runtime": "solid",
  "title": "Post Mini Card",
  "type": "registry:component"
}
