Order tracker day of — Storefront block
Freestorefront-order-tracker-day-of · for account, order, tracking pages
Order tracker day of
The delivery day itself: its steps, the driver’s progress when the carrier gives it, and the photo proof once delivered
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-day-ofUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontOrderTrackerDayOf from '@/components/trame/blocks/storefront/storefront-order-tracker-day-of.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>
<StorefrontOrderTrackerDayOf 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 |
| asset | a picture’s address as your app serves it |
| 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 receipt narrow card: the confirmation, an email or an order page: a centred narrow card with the order number and the payment, no action.
- Order review sections: the last look before paying: address, delivery, payment and items as editable rows, then totals and the pay button.
- Order review with code card: the same, with a discount-code card above the totals that updates the amount on the pay button.
- Order summary card: beside a form on a wide screen: a bordered card, sticky under the header, the lines then the rows then the total.
- 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.