{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A post card of PostShowcase with the text on a panel over the lower part of the picture: the category and date, the title, the excerpt and a read link.",
  "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 * A post card of PostShowcase with the text on a panel over the lower part of the picture: the category and\n * date, the title, the excerpt and a read link.\n */\nimport { type JSX } from \"solid-js\";\nimport { Badge, Box, Group, Stack, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport { cn } from \"../utils\";\nimport type { Post, PostLabels } from \"../blocks/post-card.types\";\n\nexport type PostOverlayCardProps = {\n  p: Post;\n  labels: PostLabels;\n  ratio?: \"4/3\" | \"16/9\";\n};\n\nexport function PostOverlayCard({ p, labels, ratio = \"4/3\" }: PostOverlayCardProps) {\n  return (\n    <Box class=\"relative overflow-hidden rounded\" data-slot=\"post-overlay\">\n      <MediaFrame\n        alt={p.title}\n        src={p.image}\n        ratio={ratio}\n        class={(((ratio as string) === \"4/3\") ? \"min-h-80\" : \"min-h-64\")}\n      />\n      <Stack gap=\"2\" align=\"start\" class=\"absolute bottom-4 left-4 right-4 rounded bg-background p-4\">\n        <Group gap=\"2\" align=\"center\">\n          <Badge variant=\"secondary\" size=\"sm\">\n            {p.category}\n          </Badge>\n          <Text size=\"xs\" class=\"text-muted-foreground\">\n            {p.date}\n          </Text>\n        </Group>\n        <Title as={3} size=\"base\" weight=\"semibold\">\n          {p.title}\n        </Title>\n        <Text size=\"sm\" class={cn(\"text-muted-foreground\", \"line-clamp-2\")}>\n          {p.excerpt}\n        </Text>\n        <MenuEntry href={p.href} class=\"gap-2 text-sm font-medium\" size=\"sm\" testid=\"read\">\n          {labels.read}\n          <LucideIcon name=\"arrow-right\" size={16} />\n        </MenuEntry>\n      </Stack>\n    </Box>\n  );\n}\n",
      "path": "components/post-overlay-card.tsx",
      "target": "components/post-overlay-card.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "post-overlay-card",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "post-card",
    "utils"
  ],
  "runtime": "solid",
  "title": "Post Overlay Card",
  "type": "registry:component"
}
