Component packs › Parcel › Box Cart
The product sinks into a 3D carton, the flaps fold, tape runs along the seam and the box arcs up into the bag, which squashes and rolls its count.
Box Cart is an add to cart from Parcel, a component pack with 8 components: E-commerce components where every product turns, packs and travels. Price: $2 for the whole pack.
Built with: 3D carton, arc flight, rolling count.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | ||
subtitle | string | ||
price | number | ||
currency | string | ||
count | number | Items already in the bag. | |
profile | 'bottle' | 'jar' | 'cup' | Product shape and colours for the drawn product. | |
body | string | ||
cap | string | ||
onAdd | (count: number) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: adds to the bag every few seconds until touched. |
readonly count: numberadd(): voiddestroy(): voidimport BoxCart from './BoxCart';
<BoxCart />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: E-commerce UI components.