Order Tracking

1 variant

Live order tracking blocks with a courier driving a route map, a rolling arrival time, delivery stages, and proof of delivery.

Delivery tracker

A van drives a street map to your door, pausing at other drops while the route fills in behind it. The arrival time rolls down, stages check off, live updates drop into a feed, and on arrival a parcel lands on the doorstep as proof of delivery.

48 Harbor Street, Apt 3

Order HP-20481

Studio headphones and 2 more

Arriving in

18 min

  1. Ordered

    Oct 18, 4:12 PM

  2. Packed

    Oct 19, 8:05 AM

  3. Left the warehouse

    Oct 19, 9:30 AM

  4. Out for delivery

    11:24 AM

  5. Delivered

Your courier

Theo Brandt4.9

Electric van · KL 4027

Live updates

  • Theo picked up your parcel at the depot

    11:24 AM
"use client";

import { DeliveryTracker } from "@/components/premium/delivery-tracker";

export function DeliveryTrackerPreview() {
  return <DeliveryTracker />;
}

Install

$ bunx --bun shadcn add @beui-pro/delivery-tracker

API Reference

Every prop is optional unless marked required. Data, copy, and colors default to the sample content.

DeliveryTracker11 props
  • order

    Order details and drive length. Defaults to the sample order.

    DeliveryOrder
  • courier

    Courier shown until delivery. Defaults to the sample courier.

    Courier
  • stages

    Stages in order; the second to last is the out-for-delivery stage.

    readonly DeliveryStage[]
  • events

    Updates keyed to route progress, oldest first.

    readonly DeliveryEvent[]
  • route

    SVG path through the 400 × 300 map, from depot to door.

    string
  • stops

    Other drops on the way, as route progress.

    readonly number[]

    Default [0.34, 0.64]

  • labels

    Text overrides, merged over the default English labels.

    Partial<TrackerLabels>
  • live

    Play the simulated drive. Turn off when wiring real positions.

    boolean

    Default true

  • onCall

    Called when the user presses the call courier button.

    (() => void)
  • onMessage

    Called when the user presses the message courier button.

    (() => void)
  • className

    Classes merged onto the root element.

    string
Types5 types

The object types these props take, field by field.

DeliveryStage3 fields
  • idRequired

    Unique stage key, used as the list key.

    DeliveryStageId
  • labelRequired

    Stage name shown in the progress list.

    string
  • time

    Display time once reached, such as "9:14 AM".

    string
DeliveryEvent4 fields
  • idRequired

    Unique update key, used as the list key.

    string
  • atRequired

    Route progress, from 0 to 1, at which the update appears.

    number
  • textRequired

    Update message shown in the live updates feed.

    string
  • timeRequired

    Display time, such as "11:42 AM".

    string
Courier4 fields
  • nameRequired

    Courier name shown in the courier card.

    string
  • avatarRequired

    Portrait image URL shown beside the name.

    string
  • vehicleRequired

    Vehicle and plate line shown under the name.

    string
  • ratingRequired

    Star rating shown next to the name, with one decimal.

    number
DeliveryOrder4 fields
  • numberRequired

    Order number shown in the header and the section label.

    string
  • summaryRequired

    Short item summary, such as "2 items".

    string
  • addressRequired

    Delivery address shown on the map and in the proof card.

    string
  • minutesRequired

    Minutes from leaving the depot to arrival.

    number
TrackerLabels11 fields
  • arrivingRequired

    Caption above the countdown while the courier is driving.

    string
  • minutesRequired

    Formats the remaining minutes for the countdown.

    (minutes: number) => string
  • deliveredRequired

    Headline shown once the parcel arrives.

    string
  • deliveredAtRequired

    Formats the line under the headline from the last update's time.

    (time: string) => string
  • orderRequired

    Prefix before the order number in the header and section label.

    string
  • updatesRequired

    Heading of the live updates feed.

    string
  • courierRequired

    Caption above the courier's name.

    string
  • callRequired

    Accessible label of the call button.

    string
  • messageRequired

    Accessible label of the message button.

    string
  • replayRequired

    Text of the button that restarts the drive after delivery.

    string
  • proofRequired

    Title of the proof of delivery card.

    string