Staaarter

Order Confirmation Page

A post-purchase success screen with order number, email confirmation, delivery estimate, and an items summary. The landing view right after checkout completes.

By Staaarter Team
Ecommerce
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/order-confirmation-page.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/ecommerce/ecommerce10.tsx instead.

Usage

The file also exports ecommerce10Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Ecommerce10, ecommerce10Demo } from "@/components/blocks/ecommerce/ecommerce10";

export default function Page() {
  return <Ecommerce10 {...ecommerce10Demo} />;
}

Props

PropTypeDefaultDescription
orderNumberstringnoneOrder number shown after the # sign.
emailstringnoneAddress the confirmation email was sent to.
estimatedDeliverystringnoneHuman-readable delivery estimate, e.g. a formatted date.
itemsOrderItem[][]Purchased items shown in the summary list.
trackOrderHrefstring"#"Destination for the Track order button.
continueShoppingHrefstring"#"Destination for the Continue shopping button.
classNamestringnoneExtra classes for the outer section element.

Types

type OrderItem = {
  name: string;
  quantity: number;
  price: string;
  image?: { src: string; alt: string };
};

Behavior notes

  • Static confirmation screen: both buttons are real links via render={<Link/>}, but there is no client-side state, no countdown, and no order data fetched, all values come in as props.
  • The items summary section only renders when items has entries; estimatedDelivery and the email line always render.
  • An item without an image prop falls back to a centered Package icon instead of a broken thumbnail.