React Checkout Page

A full-page composition, not a single widget: the distributor checkout flow assembled from the pieces you already have. A numbered rail runs contact → shipping address → shipping method → payment, while the order summary sits sticky on the right. The shipping selector is wired to the total — switch to Expedited and the summary's shipping line and the Pay button both update. Payment is the same PaymentForm (card or purchase order), and placing the order surfaces a confirmation. This is how the commerce components come together into a page you could ship.

AXM Components · Secure checkout

Checkout

1

Contact

2

Shipping address

3

Shipping method

4

Payment

Payment

Encrypted

By continuing you agree to the terms of sale. Card details are processed by our PCI-DSS provider and never touch our servers.

Installation

npx shadcn@latest add checkout.json

Composition

The page is deliberately thin glue over installable components:

PieceSourceRole
OrderSummaryorder-summarySticky rail; receives shipping from the method selector
PaymentFormpayment-formStep 4; amount bound to the live total
Field / InputinputContact + shipping-address fields
Shipping selectorinline role="radiogroup"Drives shipping, which flows into the total

Cart quantity (with MOQ / pack-multiple rules), shipping method, and payment method are the only state; the total is derived, so every control stays in sync. Replace the demo line items and address defaults with your own data and handlers.

Usage

Loading...