Ballmac UI home

Ecommerce 5: order tracking

An order tracking page that answers where it is and when it arrives: a sentence on top, five stages with the current one marked in words, the carrier's log, a tracking number to copy, and the right next action.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/ecommerce-5

Usage

Example: ecommerce-5-demo.tsx
"use client"

import { Ecommerce5 } from "@/components/ballmac/blocks/ecommerce-5/ecommerce-5"

export default function Ecommerce5Demo() {
  return <Ecommerce5 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton header, progress and panels under the page, announced as loading.

    state="loading"
  • Order not found

    Says the order could not be found; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry). Starting a return or changing delivery that fails says why.

    state="error"

Dependencies

Use with AI

Order tracking. <Ecommerce5 order={{ number, placed, total, stage: 'ordered'|'packed'|'shipped'|'out'|'delivered', eta, carrier, tracking, address, items, events }} onStartReturn={(number) => Promise} onChangeDelivery={(number) => Promise} />. The heading is the ETA sentence, or 'Your order has arrived'. Change delivery shows before the order ships, Start a return once it is delivered. Events are newest first. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Ecommerce 5: order tracking (@ballmac/ecommerce-5) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • The page a customer opens from the shipping email
  • An orders area in an account

Not for

  • Choosing what to buy; use ecommerce-1
  • Paying; use ecommerce-4

Registry JSON: https://ui.ballmac.com/r/ecommerce-5.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.