Order list timeline — Storefront block

Pro

storefront-order-list-timeline · for account pages

Order list timeline

Orders grouped in progress and finished, each with one honest line of status: a customer who wants to know what is on its way

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-list-timeline

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontOrderListTimeline from '@/components/trame/blocks/storefront/storefront-order-list-timeline.vue'

const props = {
orders: [
{
id: "cmd-48213",
number: "RB-48213",
date: "October 1, 2026",
status: "shipped",
lines: [
{
product: {
id: "p1",
name: "Trail Path running shoe",
image: "https://images.unsplash.com/photo-1575987116913-e96e7d490b8a?w=1600&q=80",
alt: "Tan leather hiking boots on a rock"
},
variant: "Midnight blue · 9",
unitPrice: 12900,
id: "l0-0",
quantity: 1
}
],
totals: {
subtotal: 12900,
shipping: 490,
total: 13390
},
tracking: {
carrier: "TrackPost",
number: "8L00123456789"
}
},
{
id: "cmd-48212",
number: "RB-48212",
date: "September 4, 2026",
status: "preparing",
lines: [
{
product: {
id: "p2",
name: "Ridge windbreaker",
image: "https://images.unsplash.com/photo-1591047139829-d91aecb6caea?w=1600&q=80",
alt: "An orange windbreaker"
},
variant: "Orange · M",
unitPrice: 8900,
id: "l1-0",
quantity: 1
},
{
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,
id: "l1-1",
quantity: 1
}
],
totals: {
subtotal: 12300,
shipping: 490,
total: 12790
}
}
],
title: "My orders",
actions: [
{
label: "Track",
action: "order.track",
for: [
"paid",
"preparing"
]
},
{
label: "View order",
action: "order.view",
for: [
"delivered",
"cancelled"
]
}
],
options: {
filters: true
}
}
</script>

<template>
<StorefrontOrderListTimeline v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
orders*Order[]Datathe signed-in customer’s own orders, newest first
titlestringWordsthe page’s heading ("My orders")
actionsAction[]what each order offers, e.g. "Track", "Return", "Reorder"
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Order orders[] · 9 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
number*stringWordsthe order’s number as the shop shows it
date*stringWordsthe date as the shop writes it
status*'pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded'where the order stands
statusLabelstringWordsthe status in the shop’s words, instead of the block’s own
lines*Line[]the order’s lines, each with its product and unit price
totals*Totalsthe order’s amounts
shippingAddressShippingAddresswhere it is delivered
trackingTrackingthe carrier’s tracking, once shipped
Line orders[].lines[] · 8 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
product*Productthe product on the line
variantstringWordsthe chosen options, written out ("Navy · 42")
unitPrice*numberan amount in cents
compareAtnumberan amount in cents
quantity*numberhow many, at least 1
maxQuantitynumberthe most the line may hold
notestringWordsa line note: a gift, a delivery delay
Product orders[].lines[].product · 4 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
name*stringWordsthe product’s name
imagestring | nullPicturethe main picture; null or absent: the product has none yet
altstringWordswhat the main picture shows
Totals orders[].totals · 11 props
PropTypeDescription
subtotal*numberan amount in cents
discountnumberan amount in cents
discountLabelstringWordswhat the discount is, e.g. a code’s name
shippingnumber | nullnull: computed at the next step
shippingLabelstringWordsthe delivery method, e.g. "Standard delivery"
feesnumberfees the shop charges on top (service, handling), when it does
feesLabelstringWordswhat the fees are ("Service fee")
taxnumberan amount in cents
taxIncludedbooleantrue: the prices include tax
total*numberan amount in cents
currencystringDesignISO 4217, EUR by default
ShippingAddress orders[].shippingAddress · 7 props
PropTypeDescription
name*stringWordsthe recipient’s name
line1*stringWordsstreet and number
line2stringWordsa second address line: building, floor
postalCode*stringWordsthe postcode
city*stringWordsthe town
country*stringWordsthe country
phonestringWordsa phone number for the delivery
Tracking orders[].tracking · 4 props
PropTypeDescription
carrierstringWordswho carries it, e.g. "Colissimo"
numberstringWordsthe carrier’s tracking number
urlstringDesignthe carrier’s tracking page
eventsEvent[]the carrier’s tracking events
Event orders[].tracking.events[] · 4 props
PropTypeDescription
date*stringWordswhen it happened, as the carrier writes it
label*stringWordswhat happened, e.g. "Out for delivery"
placestringWordswhere it happened
done*booleantrue: this event has happened
Action actions[] · 4 props
PropTypeDescription
label*stringWordswhat the link does ("Track", "Return", "Order again")
action*stringActiona named action of the page
for('pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded')[]the statuses it applies to; every order when absent
reorderbooleanthe action puts the order’s products back in the cart
Options options · 4 props
PropTypeDescription
perPagenumberhow many orders a page shows
filtersbooleanstatus filter above the list
emptystringWordswhat the list says when the customer has no order yet
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
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).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
moneyformats a price, given in cents
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour 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:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo 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: actions[]
  • Reads orders from your app

A storefront section, for account pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.

More storefront blocks

  • Order detail sheet: a side sheet over the order list, closed back to it: opening one order without leaving the history.
  • Order detail stacked: one column of sections, the lines first, then delivery and payment side by side: an order page read top to bottom.
  • Order detail tabs: the order in one card with "Summary", "Payment" and "Delivery" tabs and its actions on top: a compact order page.
  • Order lookup form and result: a guest types the order number and e-mail, the result appears below: orders placed without an account.
  • 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.

All 409 storefront blocks