{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkout",
  "title": "Checkout",
  "description": "A two-column checkout — payment method picker and card form beside an order summary sidebar.",
  "registryDependencies": [
    "card",
    "input",
    "label",
    "button",
    "radio-group",
    "separator",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/checkout.tsx",
      "content": "import {\n  Card,\n  CardHeader,\n  CardTitle,\n  CardDescription,\n  CardContent,\n  CardFooter,\n} from '@/components/ui/card'\nimport { Input } from '@/components/ui/input'\nimport { Label } from '@/components/ui/label'\nimport { Button } from '@/components/ui/button'\nimport { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'\nimport { Separator } from '@/components/ui/separator'\nimport { Icon } from '@/components/ui/icon'\n\n/** A two-column checkout — payment method picker and card form beside an order summary sidebar. */\nexport function Checkout() {\n  return (\n    <div className=\"mx-auto grid w-full max-w-page grid-cols-[1fr_var(--size-panel)] items-start gap-6 max-md:grid-cols-1\">\n      <Card>\n        <CardHeader>\n          <CardTitle>Payment</CardTitle>\n          <CardDescription>All transactions are encrypted end to end.</CardDescription>\n        </CardHeader>\n        <CardContent className=\"flex flex-col gap-5\">\n          <RadioGroup defaultValue=\"card\" className=\"grid grid-cols-3 gap-2\" aria-label=\"Payment method\">\n            {[\n              { value: 'card', label: 'Card', icon: 'credit_card' },\n              { value: 'bank', label: 'Bank', icon: 'account_balance' },\n              { value: 'wallet', label: 'Wallet', icon: 'wallet' },\n            ].map((m) => (\n              <Label\n                key={m.value}\n                htmlFor={`pay-${m.value}`}\n                className=\"flex cursor-pointer flex-col items-center gap-2 rounded-lg border border-border p-3 font-medium transition-colors has-data-checked:border-ring has-data-checked:bg-muted\"\n              >\n                <RadioGroupItem id={`pay-${m.value}`} value={m.value} className=\"sr-only\" />\n                <Icon name={m.icon as never} className=\"size-icon-xl text-muted-foreground\" aria-hidden />\n                {m.label}\n              </Label>\n            ))}\n          </RadioGroup>\n          <div className=\"flex flex-col gap-1.5\">\n            <Label htmlFor=\"checkout-name\">Name on card</Label>\n            <Input id=\"checkout-name\" placeholder=\"Ada Lovelace\" />\n          </div>\n          <div className=\"flex flex-col gap-1.5\">\n            <Label htmlFor=\"checkout-number\">Card number</Label>\n            <Input id=\"checkout-number\" inputMode=\"numeric\" placeholder=\"1234 5678 9012 3456\" />\n          </div>\n          <div className=\"grid grid-cols-2 gap-3\">\n            <div className=\"flex flex-col gap-1.5\">\n              <Label htmlFor=\"checkout-expiry\">Expiry</Label>\n              <Input id=\"checkout-expiry\" placeholder=\"MM / YY\" />\n            </div>\n            <div className=\"flex flex-col gap-1.5\">\n              <Label htmlFor=\"checkout-cvc\">CVC</Label>\n              <Input id=\"checkout-cvc\" inputMode=\"numeric\" placeholder=\"123\" />\n            </div>\n          </div>\n        </CardContent>\n        <CardFooter className=\"justify-end\">\n          <Button className=\"w-full\">\n            Pay $58.00 <Icon name=\"lock\" />\n          </Button>\n        </CardFooter>\n      </Card>\n      {/* Default size, like Payment beside it, so the two titles share a top edge and a size. */}\n      <Card>\n        <CardHeader>\n          <CardTitle>Order summary</CardTitle>\n        </CardHeader>\n        <CardContent className=\"flex flex-col gap-2 text-sm\">\n          <div className=\"flex justify-between\">\n            <span className=\"text-muted-foreground\">The Brief, annual</span>\n            <span className=\"text-foreground tabular-nums\">$48.00</span>\n          </div>\n          <div className=\"flex justify-between\">\n            <span className=\"text-muted-foreground\">Additional seats</span>\n            <span className=\"text-foreground tabular-nums\">$14.00</span>\n          </div>\n          <div className=\"flex justify-between\">\n            <span className=\"text-muted-foreground\">Early-bird discount</span>\n            <span className=\"text-foreground tabular-nums\">−$4.00</span>\n          </div>\n          <Separator className=\"my-2\" />\n          <div className=\"flex justify-between font-medium\">\n            <span className=\"text-foreground\">Total</span>\n            <span className=\"text-foreground tabular-nums\">$58.00</span>\n          </div>\n        </CardContent>\n      </Card>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/checkout.tsx"
    }
  ],
  "meta": {
    "intent": [
      "commerce",
      "form"
    ],
    "use_when": "You need to collect payment and card details alongside an order summary.",
    "not_for": "you only need the cart-review card, not the full payment form beside it → order-summary; payment is one step in a longer multi-step flow, not a single standalone page → wizard"
  },
  "docs": "A two-column checkout — payment method picker and card form beside an order summary sidebar. Do: Use a RadioGroup for payment-method choice (Card/Bank/Wallet) — it's a single mutually exclusive choice, styled as cards. Don't: Use checkboxes or a dropdown for a single mutually exclusive payment method. Do: Pair the payment submit button with a lock icon, so the action itself visibly reads as a secure transaction. Don't: Ship the payment submit button with no lock icon — nothing on the button signals that submitting card data is secure. Use order-summary when you only need the cart-review card, not the full payment form beside it. Use wizard when payment is one step in a longer multi-step flow, not a single standalone page.",
  "categories": [
    "commerce",
    "form"
  ],
  "type": "registry:block"
}