Order detail stacked — Storefront block
Prostorefront-order-detail-stacked · for account, order pages
Order detail stacked
One column of sections, the lines first, then delivery and payment side by side: an order page read top to bottom
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-detail-stackedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontOrderDetailStacked from '@/components/trame/blocks/storefront/storefront-order-detail-stacked.vue'
const props = {
order: {
id: "cmd-48213",
number: "RB-48213",
date: "October 10, 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",
quantity: 1
},
{
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",
quantity: 1
}
],
totals: {
subtotal: 28600,
shipping: 490,
shippingLabel: "Home delivery",
tax: 4848,
taxIncluded: true,
total: 29090
},
shippingAddress: {
name: "Camille Roux",
line1: "14 rue des Tanneurs",
postalCode: "69001",
city: "Lyon",
country: "France",
phone: "+33 6 12 34 56 78"
},
deliveryMethod: "Home delivery",
expected: "Tuesday 14 to Wednesday 15 October",
payment: {
method: "Visa ending in 4242",
status: "paid",
date: "October 10, 2026"
},
tracking: {
carrier: "TrackPost",
number: "8L00123456789",
events: [
{
date: "Oct 12, 08:14",
label: "Out for delivery",
place: "Lyon",
done: true
},
{
date: "Oct 11, 21:40",
label: "Arrived at the local depot",
place: "Vénissieux",
done: true
}
]
}
},
title: "Order details",
actions: {
invoice: "order.invoice",
track: "order.track",
cancel: "order.cancel",
return: "order.return",
reorder: "order.reorder",
help: "order.help",
back: "account.orders"
}
}
</script>
<template>
<StorefrontOrderDetailStacked v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| order* | Order | Datathe signed-in customer’s own order |
| title | string | Wordsthe heading, e.g. "Order details"; absent: the order’s number |
| actions | Actions | what the order offers; each one is shown only when the page has it and the order’s status allows it |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Order order · 13 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 |
| payment | Payment | the payment, as the payment provider recorded it |
| billingAddress | BillingAddress | where the invoice goes, when it differs from the delivery address |
| expected | string | Wordsthe delivery window the shop or the carrier gives, e.g. "Thursday 14 to Saturday 16 November" |
| deliveryMethod | string | Wordshow it travels, e.g. "Home delivery" or "Pick-up point: Harbour Café" |
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 |
Payment order.payment · 4 props
| Prop | Type | Description |
|---|---|---|
| method* | string | Wordshow it was paid, as the payment provider names it, e.g. "Visa ending in 4242" |
| status | 'paid' | 'pending' | 'refunded' | 'partially-refunded' | 'failed' | where the payment stands |
| date | string | Wordswhen it was paid, as the shop writes it |
| refunded | number | the amount refunded so far, in cents |
BillingAddress order.billingAddress · 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 |
Actions actions · 7 props
| Prop | Type | Description |
|---|---|---|
| invoice | string | Actionthe order’s invoice, a link the host serves (a PDF) |
| track | string | Actionthe order’s tracking page; offered while it is on its way |
| cancel | string | Actioncancels the order before it leaves, asked to confirm first; offered while it is pending, paid or being prepared |
| return | string | Actionstarts a return; offered once it is delivered |
| reorder | string | Actionputs the order’s products back in the cart |
| help | string | Actioncontact about this order |
| back | string | Actionwhere "All orders" leads: the customer’s order list |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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.invoice,actions.track,order.cancel,actions.return,order.reorder,actions.help,actions.back - Reads
orders,shipmentsfrom your app
A storefront section, for account, order pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More storefront blocks
- Open books cost breakdown: lines with their amount and a thin proportional bar, and the total: where the price of a product goes; the merchant’s own only.
- 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 list cards: one card per order with its pictures and a progress line: a customer with a few orders to follow.
- Order list reorder grid: the products already bought, to put back in the cart in one click: consumables and repeat purchases.
- Order list rows: compact lines with the number, status, total and actions: a customer who orders often and scans the history.
- 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.