{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A centered closing card: heading, one sentence and a pill button. Sizes from the default preset.",
  "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/cta-banner.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/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// CtaBannerProps are the props of CtaBanner; the values are the JSON shapes of the TypeScript props.\ntype CtaBannerProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tCta any `json:\"cta\"`\n\tHref any `json:\"href\"`\n\tTone any `json:\"tone\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A centered closing card: heading, one sentence and a pill button. Sizes from the default preset.\ntempl CtaBanner(p CtaBannerProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t{{ vCta := p.Cta }}\n\t{{ vHref := p.Href }}\n\t{{ vTone := uiutils.Def(p.Tone, \"muted\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"section\", Class: \"w-full py-0\", Attrs: uiutils.Attrs(\"aria-labelledby\", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, uiutils.Tpl(\"{0}-title\", vId)), \"data-tone\", vTone, \"data-density\", \"compact\", \"aria-label\", vLandmarkLabel, \"data-slot\", \"section\")}}) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex w-full flex-col items-center gap-10 bg-muted px-6 text-center\", uiutils.Get(presetDefaults, \"cta\", \"panel\"))), Attrs: uiutils.Attrs(\"data-slot\", \"cta-banner\")}}) {\n\t\t\t@compose.Title(compose.TitleProps{As: \"2\", Size: \"3xl\", Weight: \"semibold\", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cnv(uiutils.Get(presetDefaults, \"cta\", \"title\"), \"leading-9\")), Attrs: uiutils.Attrs(\"id\", uiutils.Tpl(\"{0}-title\", vId))}}) {\n\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t}\n\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", Weight: \"semibold\", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cnv(\"leading-5 text-muted-foreground\", uiutils.Get(presetDefaults, \"cta\", \"text\")))}}) {\n\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t}\n\t\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"lg\", ButtonProps: button.ButtonProps{Href: uiutils.URL(vHref, false), Class: uiutils.S(uiutils.Get(presetDefaults, \"cta\", \"button\"))}}) {\n\t\t\t\t{ uiutils.Text(vCta) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/cta-banner.templ",
      "target": "blocks/cta-banner.templ"
    }
  ],
  "meta": {
    "category": "general",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "cta-banner",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "kit-box",
    "kit-button",
    "kit-text",
    "presets",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Cta Banner",
  "type": "registry:block"
}
