{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The end of the checkout form: the consent checkbox, the submit button and the legal line.",
  "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/checkout-submit.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/ui/checkbox\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/label\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// CheckoutSubmitProps are the props of CheckoutSubmit; the values are the JSON shapes of the TypeScript props.\ntype CheckoutSubmitProps struct {\n\tId any `json:\"id\"`\n\tConsent any `json:\"consent\"`\n\tSubmit any `json:\"submit\"`\n\tLegal any `json:\"legal\"`\n}\n\n// The end of the checkout form: the consent checkbox, the submit button and the legal line.\ntempl CheckoutSubmit(p CheckoutSubmitProps) {\n\t{{ vId := p.Id }}\n\t{{ vConsent := p.Consent }}\n\t{{ vSubmit := p.Submit }}\n\t{{ vLegal := p.Legal }}\n\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"start\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"checkout-submit\")}}) {\n\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"w-fit\", \"\"))}}) {\n\t\t\t@compose.Checkbox(compose.CheckboxProps{CheckboxProps: checkbox.CheckboxProps{Name: \"consent\", Attrs: uiutils.Attrs(\"id\", uiutils.Tpl(\"{0}-consent\", vId))}})\n\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{For: uiutils.S(uiutils.Tpl(\"{0}-consent\", vId)), Class: \"text-sm\"}}) {\n\t\t\t\t{ uiutils.Text(vConsent) }\n\t\t\t}\n\t\t}\n\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"lg\", ButtonProps: button.ButtonProps{Type: \"submit\"}}) {\n\t\t\t{ uiutils.Text(vSubmit) }\n\t\t}\n\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t{ uiutils.Text(vLegal) }\n\t\t}\n\t}\n}\n",
      "path": "blocks/checkout-submit.templ",
      "target": "blocks/checkout-submit.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "checkout-submit",
  "registryDependencies": [
    "button",
    "checkbox",
    "group",
    "kit-box",
    "kit-button",
    "kit-checkbox",
    "kit-label",
    "kit-text",
    "label",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Checkout Submit",
  "type": "registry:component"
}
