{
  "$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/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-feature.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\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// PostFeatureProps are the props of PostFeature; the values are the JSON shapes of the TypeScript props.\ntype PostFeatureProps struct {\n\tP any `json:\"p\"`\n\tLabels any `json:\"labels\"`\n}\n\n// The featured post of PostShowcase: the category, the title, the excerpt, the author with the date and reading time, and a wide read button.\ntempl PostFeature(p PostFeatureProps) {\n\t{{ vP := p.P }}\n\t{{ vLabels := p.Labels }}\n\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Class: \"border-t border-border pt-6\", Attrs: uiutils.Attrs(\"data-slot\", \"post-feature\")}}) {\n\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{Class: \"w-fit\"}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vP, \"category\")) }\n\t\t}\n\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"xl\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vP, \"title\")) }\n\t\t}\n\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vP, \"excerpt\")) }\n\t\t}\n\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vP, \"author\"), Ratio: \"1/1\", Class: uiutils.Cnv(\"size-10 shrink-0 rounded-full\")})\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"author\")) }\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.Tpl(\"{0} · {1}\", uiutils.Get(vP, \"date\"), uiutils.Tpl(uiutils.Get(vLabels, \"minutes\"), uiutils.Get(vP, \"minutes\")))) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"default\", ButtonProps: button.ButtonProps{Href: uiutils.URL(uiutils.Get(vP, \"href\"), false), Class: \"w-full gap-2\"}}) {\n\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"read\")) }\n\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"arrow-right\", Size: 16})\n\t\t}\n\t}\n}\n",
      "path": "blocks/post-feature.templ",
      "target": "blocks/post-feature.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "post-feature",
  "registryDependencies": [
    "badge",
    "button",
    "group",
    "kit-box",
    "kit-button",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Post Feature",
  "type": "registry:component"
}
