An order summary where every line that changes the total is visible before you pay.
Import it and pass your content. The props that matter most are listed next.
import { Checkout } from "@/components/ui/notchset/blocks/checkout";
export function Upgrade() {
return (
<Checkout
context="ACME LABS · BUILDER → TEAM"
plan={{ tile: "TM", name: "Team", spec: "10 seats · 50K runs", price: { monthly: 99, yearly: 79 }, yearlyDiscount: 240 }}
taxes={[{ value: "us-ca", label: "US-CA", rate: 0.085, note: "California 8.5%" }]}
onPromo={async (code) => (await fetch(`/api/promo/${code}`).then((r) => r.json())).percent ?? null}
onPay={(summary) => fetch("/api/upgrade", { method: "POST", body: JSON.stringify(summary) })}
renewal={(billing, n) => `RENEWS ${billing === "yearly" ? "YEARLY" : "MONTHLY"} AT $${n}`}
receipt="RECEIPT SENT TO MAYA@ACME.DEV"
/>
);
}plan–
{ tile, name, spec, price: { monthly, yearly }, yearlyDiscount }The plan line; yearlyDiscount is the yearly line's amount.
credit / taxes–
{ label, amount } / { value, label, rate, note }[]A proration credit and the tax choices.
onPromo–
(code) => Promise<number | null>Resolve with the percent off, null when invalid; a rejection says the check failed.
onPay / renewal / receipt–
(summary) => Promise / (billing, recurring) => string / stringPay (resolve for ✓ PAID), the renewal line and the receipt line.
Checkoutdata-slot="checkout"
The plan line, promo, lines, tax, total and pay.
components/ui/notchset/blocks/checkout.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @beautiful-ui-pro/checkoutNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-04
First release
Pro is in early access.