Back to blocks
BlockeCommerceFree

Cart Offer Modal React component

An add-to-cart modal with a mix-and-match deal: it confirms the item, shows how many more to add for the next discount tier on a progress track, lets shoppers add picks right in the modal with prices already discounted, and counts the savings and total as tiers unlock.

About the Cart Offer Modal component

Cart Offer Modal turns the 'added to cart' moment into a chance to save more. It confirms what was added, then shows exactly how many more items unlock the next discount and lets people add them without leaving the modal.

Prices on the suggested products already show the deal price, the track fills as tiers unlock, and the savings and total count up so the benefit is always clear.

When to use it

Use it for mix-and-match promotions, 'buy more, save more' campaigns, or bundle deals after add to cart.

For a first-visit offer use the Welcome Offer Modal; for a simple cart preview use the Cart Modal.

Installation

Add the Cart Offer Modal component to your project with the shadcn CLI. It lands in components/cart-offer-modal.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/cart-offer-modal

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More eCommerce components

Newsletter Discount Modal
Free
Welcome Offer Modal
Free
Category Carousel
Free
Store Navigation
Free
Featured Categories Banner
Free
Product Reviews Block
Free