LedgerlyConceptInteractive preview
Ledgerly: Checkout
A two-column checkout with a self-formatting card form, brand detection, animated validation, a sliding billing toggle, a promo code and a rolling total.
- Category
- Checkout
- Platform
- Web
Interactive screenClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state
Use this screen
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/screens/ledgerly-checkout.json2. Use it
Every prop is optionalapp/page.tsx
import LedgerlyCheckout from "@/components/ledgerly-checkout";
export default function Page() {
return <LedgerlyCheckout />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A warm cream (#f4efe4) page in the Ledgerly family: serif wordmark top left, a lock and 'Secure checkout' top right, a large serif 'Complete your order' with an italic green 'order'.
- From 1024px two columns: the payment form on the left and a sticky white order-summary card (rounded 24px) on the right showing the plan, two features, the yearly saving, any promo line and a large serif 'Total due today'. On phones the summary sits above the form in one column.
- A Monthly / Yearly segmented switch whose white pill slides between the two options (Yearly carries a green 'Save 20%' tag). Switching rolls the total to its new value over about half a second.
- Fields (52px tall, 12px radius): email, card number, expiry, security code, name on card. The card number groups itself in fours (4-6-5 for American Express) and shows a Visa, Mastercard or Amex badge as soon as the number is recognisable. Expiry adds its own slash.
- Errors slide in under the field in red. A Promo code field with an Apply button accepts WELCOME10 (10% off) and turns into an animated green chip with a remove button; any other code shows an error.
- A full-width deep-green Pay button shows the amount, then a spinner with 'Processing…', then a check with 'Payment received'. A small note says it is a demo and no real payment is taken. The declined state shows a pink alert banner that slides in above the form.
How it behaves
- Pressing Pay on an empty form shows an error under every field and moves focus to the first one; nothing is submitted.
- Typing 4242424242424242 shows '4242 4242 4242 4242' and a Visa badge; typing 0829 in expiry shows '08/29'; a bad checksum, an expired date and a short security code each show their own message.
- Applying WELCOME10 shows an applied chip, a discount line and a 10% lower total; another code shows 'That code isn't valid or has expired.'; removing the chip restores the total.
- Switching to Monthly slides the pill and rolls the total (a yearly Studio plan of $468.00 becomes $49.00); the Pay button label always matches the total.
- A valid submit runs Processing then Payment received and calls onContinue with the billing period, total and card's last four digits; card 4000 0000 0000 0002 ends in a declined banner instead.
- With reduced motion the pill and total jump instead of easing and messages appear without sliding; nothing scrolls sideways at 375px.



