Order confirmation table — Storefront block
Freestorefront-order-confirmation-table · for confirmation pages
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
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-confirmation-tableUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import StorefrontOrderConfirmationTable from '@/components/trame/blocks/storefront/storefront-order-confirmation-table.vue'
const props = {
order: {
id: "cmd-48213",
number: "RB-48213",
date: "October 12, 2026",
status: "paid",
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 shoes on a rock"
},
variant: "Midnight blue · 42",
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: "Orange windbreaker"
},
variant: "Orange · M",
unitPrice: 8900,
id: "l1",
quantity: 1
}
],
totals: {
subtotal: 28600,
shipping: 0,
tax: 4767,
taxIncluded: true,
total: 28600
},
shippingAddress: {
name: "Camille Martin",
line1: "14 Linden Street",
line2: "Building B",
postalCode: "97214",
city: "Portland, OR",
country: "United States"
},
email: "[email protected]",
paymentMethod: "Card ending in 4242",
shippingMethod: "Home delivery",
deliveryEstimate: "Between October 15 and 17"
},
title: "Thank you, your order is confirmed",
nextSteps: "We’re preparing your parcel. You’ll get an email with the tracking number as soon as it leaves the workshop.",
actions: {
track: {
label: "Track my order",
action: "order.track"
},
cancel: {
label: "Cancel the order",
action: "order.cancel"
},
account: {
label: "Create my account",
action: "account.signUp"
},
browse: {
label: "Keep shopping",
action: "catalog"
}
},
options: {
cancelWindow: "You can cancel as long as the parcel hasn’t shipped.",
accountPrompt: "Create an account to track this order and find your addresses next time.",
support: "A question about your order? Write to us at [email protected] and include the number RB-48213."
}
}
</script>
<template>
<StorefrontOrderConfirmationTable v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| order* | Order | Datathe order just placed |
| title | string | Wordsthe thanks ("Thank you, your order is confirmed") |
| nextSteps | string | Wordswhat happens now, as the shop does it ("We prepare your parcel within 48 h") |
| actions | Actions | the links after the order, each optional |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Order order · 14 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' | a confirmation may not say it yet |
| 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 |
| string | Wordsthe address the confirmation was sent to | |
| paymentMethod | string | Words"Visa card ending 4242": as the payment provider reports it |
| shippingMethod | string | Words"Home delivery" |
| deliveryEstimate | string | Wordsthe delivery date or window the shop gave, as written: never computed here |
| currency | string | DesignISO 4217, EUR by default |
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 |
Actions actions · 4 props
| Prop | Type | Description |
|---|---|---|
| track | Track | the link to follow the delivery |
| cancel | Cancel | the link to cancel the order |
| account | Account | the link to the customer’s account |
| browse | Browse | the link back to the shop |
Track actions.track · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the button says |
| action* | string | Actiona named action of the page |
Cancel actions.cancel · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the button says |
| action* | string | Actiona named action of the page |
Account actions.account · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the button says |
| action* | string | Actiona named action of the page |
Browse actions.browse · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the button says |
| action* | string | Actiona named action of the page |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| cancelWindow | string | Wordshow long the order can be cancelled, as the shop wrote it |
| accountPrompt | string | Wordswhy to create an account, one sentence |
| support | string | Wordshow to reach the shop about this order |
| 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.track,actions.cancel,actions.account,actions.browse - Reads
ordersfrom your app
A storefront section, for confirmation pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.
More storefront blocks
- Offers panel inline strip: the offers as a row of cards on the page, scrolling sideways past three: when no overlay is wanted; the merchant’s own offers only.
- Offers panel launcher stack: a small pill fixed at the bottom corner with the count, opening a compact card of thumbnail rows: offers always at hand on a catalogue or cart page; the merchant’s own offers only.
- 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 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 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.