Order list cards — Storefront block
Prostorefront-order-list-cards · for account pages
Order list cards
One card per order with its pictures and a progress line: a customer with a few orders to follow
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-cardsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontOrderListCards from '@/components/trame/blocks/storefront/storefront-order-list-cards.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>
<StorefrontOrderListCards v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| orders* | Order[] | Datathe signed-in customer’s own orders, newest first |
| title | string | Wordsthe page’s heading ("My orders") |
| actions | Action[] | what each order offers, e.g. "Track", "Return", "Reorder" |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Order orders[] · 9 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[] | the order’s lines, each with its product and unit price |
| totals* | Totals | the order’s amounts |
| shippingAddress | ShippingAddress | where it is delivered |
| tracking | Tracking | the carrier’s tracking, once shipped |
Line orders[].lines[] · 8 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| product* | Product | the product on the line |
| variant | string | Wordsthe chosen options, written out ("Navy · 42") |
| unitPrice* | number | an amount in cents |
| compareAt | number | an amount in cents |
| quantity* | number | how many, at least 1 |
| maxQuantity | number | the most the line may hold |
| note | string | Wordsa line note: a gift, a delivery delay |
Product orders[].lines[].product · 4 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe product’s name |
| image | string | null | Picturethe main picture; null or absent: the product has none yet |
| alt | string | Wordswhat the main picture shows |
Totals orders[].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 orders[].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 orders[].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 orders[].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 |
Action actions[] · 4 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the link does ("Track", "Return", "Order again") |
| action* | string | Actiona named action of the page |
| for | ('pending' | 'paid' | 'preparing' | 'shipped' | 'delivered' | 'cancelled' | 'returned' | 'refunded')[] | the statuses it applies to; every order when absent |
| reorder | boolean | the action puts the order’s products back in the cart |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| perPage | number | how many orders a page shows |
| filters | boolean | status filter above the list |
| empty | string | Wordswhat the list says when the customer has no order yet |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| 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 |
| money | formats a price, given in cents |
| 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:
actions[] - Reads
ordersfrom your app
A storefront section, for account pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.
More storefront blocks
- Order confirmation card: one centred card with the order, its delivery and its actions: the default after a payment.
- Order confirmation receipt: the order’s four facts side by side above its lines and totals: a customer who wants the record at a glance.
- Order confirmation table: a bordered panel with the order’s header and a table of items: orders with many lines or a delivery date per line.
- 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.