Skip to content
Calm motion: animations on this site only fade, with no movement

Shipment tracker ​

The steps of a delivery, with dates and the latest update

Shows where an order is: ordered, packed, shipped, out for delivery, or delivered. Under the steps, it shows the latest update of the carrier. For the steps of a form, use the steps.

Basic
  1. Ordered10 Nov, done
  2. Packed11 Nov, done
  3. Shipped12 Nov, done
  4. Out for delivery14 Nov, current step
  5. Delivered
Latest update

Out for delivery with the courierJakarta Selatan · 14 Nov, 09:12

All updates (4)
  1. 14 Nov, 09:12Out for delivery with the courier · Jakarta Selatan
  2. 13 Nov, 20:40Arrived at the delivery hub · Jakarta
  3. 12 Nov, 16:05Left the warehouse · Bandung
  4. 11 Nov, 10:30Packed and labeled · Bandung

Tracking number (JNE): JN0041 2026 1115

  • stage is the last step that the order reached: 0 ordered, 1 packed, 2 shipped, 3 out for delivery, and 4 delivered. The steps before it have a check, and a line fills up to it.
  • dates gives the date of each step that is done, as text, in the same order.
  • events is the list of updates of the carrier, newest first. Each update has a time and a text, both as text, and an optional place. The newest update shows under the steps. "All updates" opens the full list.
  • problem shows a problem with the delivery as an alert. The current step then shows a "!" in the danger color.
  • tracking shows the tracking number, with the carrier name. With a tracking-url, the number is a link.
  • The current step has aria-current="step", and screen readers hear "done" or "current step" after each name. Change the words with labels or a label pack: title, ordered, packed, shipped, out, delivered, latest, history, tracking, done, and current.

Usage ​

ts
import { BlessShipmentTracker } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
stage*number—the stage the order has reached: 0 ordered, 1 packed, 2 shipped, 3 out for delivery, 4 delivered
dates(string | undefined)[][]the date of each stage that is done, as text
eventsBlessShipmentEvent[][]the updates of the carrier, newest first
problemstring—a problem with the delivery: the current stage shows it
carrierstring—
trackingstring—
trackingUrlstring—a link to the page of the carrier
labelsPartial<Record<"out" | "shipped" | "delivered" | "ordered" | "packed", string> & { title: string; latest: string; history: string; tracking: string; done: string; current: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.