Catalogue
Stack Cart Drawer, preview

Live. Click, drag or type.

A store page and cart drawer. Tap Add and the product shrinks into a disc that arcs into a glass cart button, where the total rolls like an odometer and a ring fills toward free shipping. Open the cart and the page blurs behind a drawer where each disc unfolds into a line item. Crossing free shipping bursts the bar; checkout folds every line back into the cart with a lime check and the order number. Modal dialog with focus handling and live announcements.

Install

  1. One commandnpx shadcn@latest add "https://qodesign.dev/r/cart-drawer.json?key=YOUR_KEY"Your key comes with the order. Works in any shadcn project, Next.js App Router included.
  2. Or copy it inThe zip has react/src/components, ready for Next.js ("use client" included).
  3. Or ask your AIPaste PROMPT.md into Cursor, Lovable or v0.

What it does

  • Products fly into the cart as spinning discs
  • Odometer total + free-shipping ring on the cart button
  • Drawer over a full-cover blurred backdrop
  • Discs unfold into line items, quantity steppers
  • Free-shipping burst, checkout folds everything home with a check
Stack
React · Framer Motion · HTML version
Released
Licence
Personal and client projects. Licence

Building a checkout? a checkout that turns into a receipt or a custom Stripe card form in Next.js.

Using Cursor, v0 or Lovable?

Can I connect this cart drawer to Stripe or my own checkout?

Yes. Pass your payment call as the onCheckout prop: it gets the cart items and the total, and when it resolves ok the lines fold back into the cart with a check. Your products and the free shipping threshold come in through the data prop. The drawer is a modal dialog with focus handling and live announcements, built in React + TypeScript with Tailwind and Framer Motion.

How do I add Stack Cart Drawer to a Next.js app I build with Cursor?

After checkout your account shows a one-line shadcn install with your licence key; run it in the project, or copy the React file from the zip into your components folder. The file already starts with "use client", so it works in the App Router. If the project does not have framer-motion yet, add it, because the motion runs on it. Then open the agent chat and paste the first prompt from the PROMPT.md that comes with it: Cursor reads the component and fits it to your data, colors and file layout instead of rewriting it.

Does Stack Cart Drawer work in v0?

Yes. Install it in your v0 project with the same shadcn command, or paste the component source into the chat. Then paste the first prompt from PROMPT.md so v0 wires it into your page and keeps the animation as it is.

Can I use Stack Cart Drawer in a Lovable project?

Yes. Lovable apps are React, TypeScript and Tailwind, the same stack as the React version. Sync the project to GitHub and add the file there, or paste the source into the Lovable chat and ask it to add the component, then paste the first prompt from PROMPT.md.

Can I try it before I add it?

Yes. The preview at the top of this page is the real component running, not a video, so you can click through it first. If you want to start with something free, the free kit at qodesign.dev/free has open-source pieces and copy-paste prompts for Cursor, v0 and Lovable.

Step by step: Cursor, v0, Lovable. Start free: the free kit

Build it yourself: How to make an add to cart animation in React (fly to cart)

Reviews

No reviews yet for this piece.

Only people who got it can review it: the order email has a rating link, one review per order.

Keep browsing

Receipt Morph Checkout, animated preview

Your card becomes the receipt: it splits, unrolls into paper and gets stamped PAID.

Prompt Bloom, animated preview

An AI chat composer: the prompt lifts into a message and the answer card blooms out of the input.

Not ready to buy? Try the free kit