{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The picture of the StoreHero overlay layout with an offer card floating on its lower corner (the card floats over the picture).",
  "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/offer-media.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// OfferMediaProps are the props of OfferMedia; the values are the JSON shapes of the TypeScript props.\ntype OfferMediaProps struct {\n\tAlt any `json:\"alt\"`\n\tImage any `json:\"image\"`\n\tCard any `json:\"card\"`\n}\n\n// The picture of the StoreHero overlay layout with an offer card floating on its lower corner (the card floats over the picture).\ntempl OfferMedia(p OfferMediaProps) {\n\t{{ vAlt := p.Alt }}\n\t{{ vImage := p.Image }}\n\t{{ vCard := p.Card }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"relative\", Attrs: uiutils.Attrs(\"data-slot\", \"hero-media\")}}) {\n\t\t@MediaFrame(MediaFrameProps{Alt: vAlt, Src: vImage, Ratio: \"4/3\"})\n\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"start\", BoxProps: box.BoxProps{Class: \"absolute bottom-4 left-4 mr-4 max-w-xs rounded bg-card p-4 shadow-lg\", Attrs: uiutils.Attrs(\"data-slot\", \"offer-card\")}}) {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex size-10 shrink-0 items-center justify-center rounded bg-muted\"}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vCard, \"icon\")), Size: 20})\n\t\t\t}\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(vCard, \"title\")) }\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(vCard, \"text\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/offer-media.templ",
      "target": "blocks/offer-media.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "offer-media",
  "registryDependencies": [
    "box",
    "group",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Offer Media",
  "type": "registry:component"
}
