Component packs › Aisle › Delivery Estimator

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.

Delivery Estimator props

PropTypeDefaultDescription
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.
regionnumber
speednumber
onChange(arrives: Date) => void
autoplaynumber | falseShowcase mode: switches speed or region every N ms while visible.

Methods on the ref

Use it in React

import DeliveryEstimator from './DeliveryEstimator';

<DeliveryEstimator />

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

More in Aisle

Good for: Skeuomorphic UI.