Order tracker vertical timeline — Storefront block
Freestorefront-order-tracker-vertical-timeline · for account, order, tracking pages
Order tracker vertical timeline
The status and window on top, then every event of the carrier’s feed: the default for one parcel
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/storefront-order-tracker-vertical-timelineUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontOrderTrackerVerticalTimeline from '@/components/trame/blocks/storefront/storefront-order-tracker-vertical-timeline.vue'
const props = {
order: {
id: "cmd-48213",
number: "RB-48213",
date: "October 12, 2026",
status: "shipped",
statusLabel: "Out for delivery",
lines: [
{
id: "l1",
product: {
id: "p1",
name: "Trail Path running shoe",
image: "https://images.unsplash.com/photo-1575987116913-e96e7d490b8a?w=1600&q=80",
alt: "A trail running shoe"
},
variant: "Midnight blue · 9",
unitPrice: 12900,
quantity: 1
},
{
id: "l2",
product: {
id: "p3",
name: "Insulated bottle 25 oz",
image: "https://images.unsplash.com/photo-1605714312496-01e90cb509cc?w=1600&q=80",
alt: "A white steel water bottle"
},
unitPrice: 3400,
quantity: 2
}
],
totals: {
subtotal: 19700,
shipping: 490,
total: 20190
},
window: "Today, between 10 a.m. and 1 p.m.",
tracking: {
carrier: "TrackPost",
number: "8L00123456789",
url: "https://trackpost.example/track",
events: [
{
date: "Oct 12, 9:14 a.m.",
label: "Order received by the workshop",
place: "Portland, OR",
done: true
},
{
date: "Oct 12, 4:40 p.m.",
label: "Package packed",
place: "Portland, OR",
done: true
}
]
}
},
title: "Track my order",
options: {
help: [
{
label: "Contact the carrier",
action: "carrier.contact"
},
{
label: "A problem with my order?",
action: "support"
}
]
}
}
</script>
<template>
<StorefrontOrderTrackerVerticalTimeline v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| order | Order | Datathe order and its shipment, from the carrier’s feed; absent before a guest looks one up |
| title | string | Wordsthe heading ("Track my order") |
| notice | string | Wordsa delay or a change the carrier or the shop reports ("Delay due to the weather") |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Order order · 15 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| number* | string | Wordsthe order’s number as the shop shows it |
| date* | string | Wordsthe date as the shop writes it |
| status* | 'pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded' | where the order stands |
| statusLabel | string | Wordsthe status in the shop’s words, instead of the block’s own |
| lines* | (Line | Line)[] | full cart lines, or summaries (name, quantity, total) when the tool keeps only those |
| totals* | Totals | the order’s amounts |
| shippingAddress | ShippingAddress | where it is delivered |
| tracking | Tracking | the carrier’s tracking, once shipped |
| window | string | Wordsthe delivery window or date, as the carrier gave it: never guessed |
| stages | Stage[] | the order’s stages, in order, each done or not |
| parcels | Parcel[] | the parcels, when the order leaves in several |
| daySteps | DayStep[] | the steps of the delivery day, for the day-of variant |
| stops | Stops | the driver’s route progress, only when the carrier provides it ("stop 7 of 24") |
| photo | Photo | the photo proof, shown after delivery |
Totals order.totals · 11 props
| Prop | Type | Description |
|---|---|---|
| subtotal* | number | an amount in cents |
| discount | number | an amount in cents |
| discountLabel | string | Wordswhat the discount is, e.g. a code’s name |
| shipping | number | null | null: computed at the next step |
| shippingLabel | string | Wordsthe delivery method, e.g. "Standard delivery" |
| fees | number | fees the shop charges on top (service, handling), when it does |
| feesLabel | string | Wordswhat the fees are ("Service fee") |
| tax | number | an amount in cents |
| taxIncluded | boolean | true: the prices include tax |
| total* | number | an amount in cents |
| currency | string | DesignISO 4217, EUR by default |
ShippingAddress order.shippingAddress · 7 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe recipient’s name |
| line1* | string | Wordsstreet and number |
| line2 | string | Wordsa second address line: building, floor |
| postalCode* | string | Wordsthe postcode |
| city* | string | Wordsthe town |
| country* | string | Wordsthe country |
| phone | string | Wordsa phone number for the delivery |
Tracking order.tracking · 4 props
| Prop | Type | Description |
|---|---|---|
| carrier | string | Wordswho carries it, e.g. "Colissimo" |
| number | string | Wordsthe carrier’s tracking number |
| url | string | Designthe carrier’s tracking page |
| events | Event[] | the carrier’s tracking events |
Event order.tracking.events[] · 4 props
| Prop | Type | Description |
|---|---|---|
| date* | string | Wordswhen it happened, as the carrier writes it |
| label* | string | Wordswhat happened, e.g. "Out for delivery" |
| place | string | Wordswhere it happened |
| done* | boolean | true: this event has happened |
Stage order.stages[] · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Words"Order", "Prepared", "Shipped", "Delivered" |
| date | string | Wordswhen the stage was reached, as the shop writes it |
| done* | boolean | true: the stage is reached |
Parcel order.parcels[] · 10 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | the parcel’s id |
| label | string | Words"Parcel 1 of 2" |
| status* | 'pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded' | where the parcel stands |
| statusLabel | string | Wordsthe status in the shop’s words, instead of the block’s own |
| items* | string[] | Wordswhat is in the parcel ("2 × Insulated bottle") |
| carrier | string | Wordswho carries it, e.g. "Colissimo" |
| number | string | Wordsthe carrier’s tracking number |
| url | string | Designthe carrier’s tracking page |
| window | string | Wordsthe delivery window, as the carrier gave it |
| events | Event[] | the carrier’s tracking events |
Event order.parcels[].events[] · 4 props
| Prop | Type | Description |
|---|---|---|
| date* | string | Wordswhen it happened, as the carrier writes it |
| label* | string | Wordswhat happened, e.g. "Out for delivery" |
| place | string | Wordswhere it happened, e.g. "Lyon hub" |
| done* | boolean | true: this event has happened |
DayStep order.daySteps[] · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe step of the delivery day ("Loaded on the vehicle") |
| time | string | Wordswhen it happened, as the carrier wrote it ("08:15") |
| done* | boolean | true: this step has happened |
Stops order.stops · 2 props
| Prop | Type | Description |
|---|---|---|
| current* | number | the stops already made |
| total* | number | the stops on the route in all |
Photo order.photo · 2 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturethe delivery photo the carrier took |
| alt | string | Wordswhat the delivery photo shows |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| help | Help[] | help links under the tracking, e.g. "Contact the carrier" |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
Help options.help[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Words"Contact the carrier" |
| action* | string | Actiona named action of the page |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
options.help[] - Reads
orders,shipmentsfrom your app
A storefront section, for account, order, tracking pages; it uses @lucide/vue.
More storefront blocks
- Order summary collapsible: a phone or a long checkout: a closed bar "Summary · total" that opens on the same card, the total always in view.
- Order summary landed: a cross-border order: goods, shipping, duties and local tax in separate groups, one total with everything included.
- Package contents side by side: a product sold as a kit: the specifications and what is in the box, side by side.
- Pairing suggestions cards: Image-led pairing cards for serving suggestions alongside a product; the merchant’s own only.
- Parcel cart by shipment: when the order leaves in several parcels or to several people: one card per delivery with its own heading and arrival, the summary beside.
- Party details lead plus names: the one who books in a full form, then the others as one compact roster, a row per guest: a larger party where only names (or a meal choice) are needed of the rest.
- Party details per person: a card per guest, the one who books first with every field, the others with theirs, each added or removed in place beside the booking’s summary: a small party whose guests each need a few details.
- Past lookbooks covers grid: past lookbooks as a grid of covers with their season and status: the archive of a brand that has history.