{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/post-overlay-card.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PostOverlayCardProps are the props of PostOverlayCard; the values are the JSON shapes of the TypeScript props.\ntype PostOverlayCardProps struct {\n\tP any `json:\"p\"`\n\tLabels any `json:\"labels\"`\n\tRatio any `json:\"ratio\"`\n}\n\n// 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.\ntempl PostOverlayCard(p PostOverlayCardProps) {\n\t{{ vP := p.P }}\n\t{{ vLabels := p.Labels }}\n\t{{ vRatio := uiutils.Def(p.Ratio, \"4/3\") }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"relative overflow-hidden rounded\", Attrs: uiutils.Attrs(\"data-slot\", \"post-overlay\")}}) {\n\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vP, \"title\"), Src: uiutils.Get(vP, \"image\"), Ratio: vRatio, Class: uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.Eq(vRatio, \"4/3\")), \"min-h-80\", \"min-h-64\"))})\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{Class: \"absolute bottom-4 left-4 right-4 rounded bg-background p-4\"}}) {\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"category\")) }\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"date\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"base\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"title\")) }\n\t\t\t}\n\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cnv(\"text-muted-foreground\", \"line-clamp-2\"))}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"excerpt\")) }\n\t\t\t}\n\t\t\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vP, \"href\"), Class: uiutils.Cnv(\"gap-2 text-sm font-medium\"), Size: \"sm\", Testid: \"read\"}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"read\")) }\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"arrow-right\", Size: 16})\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/post-overlay-card.templ",
      "target": "blocks/post-overlay-card.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "post-overlay-card",
  "registryDependencies": [
    "badge",
    "box",
    "group",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "menu-entry",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Post Overlay Card",
  "type": "registry:component"
}
