Component packs › Aisle › Delivery Estimator
A parcel slides along a timeline of working days from today to its arrival day, tipping with its speed.
Delivery Estimator is a delivery from Aisle, a component pack with 6 product page components: Product page controls where the product itself changes with every choice. Price: $2 for the whole pack.
Built with: working-day dates, parcel with inertia, region and speed.
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 |
|---|---|---|---|
regions | { name: string; extra: number }[] | Regions and how many extra working days each adds. | |
speeds | { name: string; days: number; price: string }[] | Speeds and their working days in transit. | |
region | number | ||
speed | number | ||
onChange | (arrives: Date) => void | ||
autoplay | number | false | Showcase mode: switches speed or region every N ms while visible. |
readonly arrives: Datedestroy(): voidimport DeliveryEstimator from './DeliveryEstimator';
<DeliveryEstimator />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.