Order trackingPro
Shipment tracking with a route map, moving van, stepper and event timeline.
What's inside
- Route map with moving van
- Delivery stepper
- Event timeline
- Copy tracking number
When to use
- Order status pages and post-purchase emails' landing pages.
When not to use
- Real-time fleet tracking: use a map library.
Installation
Usage
Import it from @/components/blocks/order-tracking after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { OrderTracking } from "@/components/blocks/order-tracking";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<OrderTracking />
</main>
);
}API reference
OrderTracking
Shipment tracking with a route map and moving van, a delivery stepper, an event timeline and a copyable tracking number. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Reach copy and stage preview buttons |
Accessibility
- The map is decorative; the stepper marks the current stage with aria-current="step" and the timeline repeats it as text.
Motion
- The route fills and the van drives along it with a spring; steps and updates animate in.
Responsive behavior
- The map scales with its width; labels stay readable at 320px.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
- The van is positioned from the SVG path itself, so it always sits on the line.
Notes for AI
- Remove the stage preview buttons in production; drive current from your carrier's status.
This page as Markdown, for assistants and coding agents:
/blocks/order-tracking/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt