{
  "$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/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-mini-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/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PostMiniCardProps are the props of PostMiniCard; the values are the JSON shapes of the TypeScript props.\ntype PostMiniCardProps struct {\n\tP any `json:\"p\"`\n\tLabels any `json:\"labels\"`\n}\n\n// A small post card of PostShowcase: the picture, the category, the title and the author with the reading time.\ntempl PostMiniCard(p PostMiniCardProps) {\n\t{{ vP := p.P }}\n\t{{ vLabels := p.Labels }}\n\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"stretch\", BoxProps: box.BoxProps{Class: \"rounded bg-card inset-ring inset-ring-border p-2\", Attrs: uiutils.Attrs(\"data-slot\", \"post-mini\")}}) {\n\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vP, \"title\"), Src: uiutils.Get(vP, \"image\")})\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"start\", BoxProps: box.BoxProps{Class: \"p-2\"}}) {\n\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"category\")) }\n\t\t\t}\n\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"sm\", 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: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Tpl(\"{0} · {1}\", uiutils.Get(vP, \"author\"), uiutils.Tpl(uiutils.Get(vLabels, \"minutes\"), uiutils.Get(vP, \"minutes\")))) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/post-mini-card.templ",
      "target": "blocks/post-mini-card.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "post-mini-card",
  "registryDependencies": [
    "badge",
    "kit-box",
    "kit-text",
    "media-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Post Mini Card",
  "type": "registry:component"
}
