Component packs › Parcel › Box Cart

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.

Box Cart props

PropTypeDefaultDescription
namestring
subtitlestring
pricenumber
currencystring
countnumberItems already in the bag.
profile'bottle' | 'jar' | 'cup'Product shape and colours for the drawn product.
bodystring
capstring
onAdd(count: number) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: adds to the bag every few seconds until touched.

Methods on the ref

Use it in React

import BoxCart from './BoxCart';

<BoxCart />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Parcel

Good for: E-commerce UI components.