Component packs › Parcel › Delivery Road

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.

Delivery Road props

PropTypeDefaultDescription
totalnumberStarting bag total.
goalnumber75Free delivery from this amount. Default 75.
currencystring
addonsDeliveryItem[]Quick add-ons shown under the road.
onChange(total: number, free: boolean) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: adds and removes add-ons until touched.

Methods on the ref

Use it in React

import DeliveryRoad from './DeliveryRoad';

<DeliveryRoad />

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

More in Parcel

Good for: E-commerce UI components.