Blocks

Ecommerce - Checkout

Checkout blocks with a single page form, a multi step flow with a stepper, a payment form with a live card preview, delivery method cards, express checkout with guest and sign in, a country aware address form, an order review and a two column layout with a collapsible mobile summary.

Demo forms, not a payment integration
These blocks validate and format input, then simulate a request with a timeout. They never send card data anywhere. Use your payment provider's hosted fields or payment element to collect real card details, and replace the simulated submit functions with calls to your server.

Every block takes a typed items array with id, name, variant, price, quantity, image and href, plus props for the tax rate and delivery options. Forms use vee-validate with yup, and the card fields are masked with v-maska. The card number check uses the Luhn algorithm, so 4242 4242 4242 4242 passes with any future expiry date.

Totals, shipping and tax are demo values. Calculate the real amounts on your server.

Style One

Single page checkout with contact, shipping address, delivery cards and card payment. Errors show inline, the delivery choice updates the total, and a confirmation replaces the form after paying.

External View

Style Two

Three step checkout with a numbered stepper that blocks skipping ahead. Each step validates before continuing, answers are kept when going back and a recap shows earlier choices.

External View

Style Three

Payment form with a card preview that updates as you type and detects the network. Includes masked fields, Luhn and expiry validation and a fill test card shortcut.

External View

Style Four

Delivery method step with radio cards, live arrival dates, a free shipping threshold and a gift wrap switch. The order summary updates with every choice.

External View

Style Five

Express checkout buttons for Apple Pay, Google Pay and PayPal, followed by tabs for guest checkout and signing in. Each tab validates different fields.

External View

Style Six

Address form that adapts to the selected country. The region and postal code labels, region options and validation pattern change with the country, and countries without a region list get a free text field. Add your own markets through the countries prop.

External View

Style Seven

Order review with contact, address, delivery and payment recaps. Each Edit button emits an edit event, and a required terms checkbox gates the place order button.

External View

Style Eight

Two column checkout with a shaded summary panel. On phones the summary collapses behind a bar that shows the total.

External View