Component packs › Parcel › Delivery Road
The free-delivery bar is a road: the van drives toward the flag as the bag grows, leans as it pulls away, puffs, and hops with a toot at the goal.
Delivery Road is a free shipping bar 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: van physics, progressbar role, rolling total.
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 |
|---|---|---|---|
total | number | Starting bag total. | |
goal | number | 75 | Free delivery from this amount. Default 75. |
currency | string | ||
addons | DeliveryItem[] | Quick add-ons shown under the road. | |
onChange | (total: number, free: boolean) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: adds and removes add-ons until touched. |
readonly total: numbersetTotal(n: number): voiddestroy(): voidimport DeliveryRoad from './DeliveryRoad';
<DeliveryRoad />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: E-commerce UI components.