SunUI
Founding$79 lifetime updates till Jan 11Claim a seat
ProSection

Checkout Flow

Full checkout scene from add to cart to delivery: a product shelf, an upsell drawer after each add, a receipt-style cart drawer, a pay step with a stateful pay button, a receipt that prints on success, and an order status pill in the header that follows every step.

When to use it

  • A storefront that needs add to cart, upsell, cart, pay and receipt wired together this week
  • Agencies that rebuild the same cart and checkout for every client store
  • Headless shops (Next.js Commerce, Hydrogen, Medusa) that want the front end of checkout without a hosted page

Watch out

  • onPay must recompute the amount on your server; the totals passed in are display numbers
  • Pass lines and onLinesChange to keep the cart in your own store; uncontrolled, the cart lives only in this component
  • Shipping here is a flat fee with a free threshold; compute real rates and tax at checkout on the server

Let your agent add it

One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.

This is a Pro block

One license unlocks every Pro block, now and in the future.

One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.

See pricing

Install with your license

  1. 1. Add the SunUI Pro registry to components.json.
    components.json
    {
      "registries": {
        "@sunui-pro": {
          "url": "https://sunui.synvize.com/r/pro/{name}.json",
          "headers": {
            "Authorization": "Bearer ${SUNUI_LICENSE_KEY}"
          }
        }
      }
    }
  2. 2. Put your license key in .env.local.
    $ SUNUI_LICENSE_KEY=your-license-key
  3. 3. Install the block.
    $ npx shadcn@latest add @sunui-pro/checkout-flow
Checkout Flow, React Component | SunUI