Back to blocks
BlockeCommerceFree

Accordion Checkout React component

A one-page checkout made of four accordion sections (contact, shipping address, delivery, payment) that open in turn, check their fields and fold into a one-line summary with edit, a segmented progress bar, a pay button that unlocks when everything is filled, and a sticky order summary with discount codes and tax.

About the Accordion Checkout component

Accordion Checkout keeps the whole checkout on one page but only shows one part at a time: contact, shipping address, delivery and payment open in order, and each folds into a one-line summary once it's filled, so the page stays short and the shopper always knows what's left.

A segmented bar and an n of 4 counter show progress, any finished section can be reopened with Edit, and the Pay button stays locked until the details it depends on are in. The order summary sits alongside with discount codes, shipping and tax.

When to use it

Use it when you want a single-page checkout that doesn't overwhelm: returning customers can skim the summaries, new ones get one small form at a time.

If most shoppers pay with a wallet or saved details, put express buttons above it; if you need extra steps (gift options, account creation), add them as more sections.

Installation

Add the Accordion Checkout component to your project with the shadcn CLI. It lands in components/accordion-checkout.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/accordion-checkout

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More eCommerce components

Order Confirmation Block
Free
Multi-step Checkout Block
Free
Horizontal Filter Bar
Free
Express Checkout Buttons
Free
Mobile Filter Modal
Free
Cart Modal
Free