Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
Components
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCountry SelectCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerEmail InputEmoji PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime PickerTimezone SelectTree Select
Forms
Address InputBooking WidgetCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text EditorSchema Builder
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverShare DialogSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSetup ChecklistSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadar chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselCSV ViewerDOCX EditorDOCX ViewerExcel ViewerFile SystemImage compareImage CropperImage GalleryImage LightboxLocation MapPDF ViewerPowerPoint ViewerQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadChat WidgetConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Background PatternGravity LettersMarqueeTerminalText AnimateText Rotate
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Marketing Sections
App Download SectionBlog Cards SectionCTA SectionFAQ SectionFeature GridFeature ShowcaseHero SectionIntegrations SectionLogo CloudMarketing FooterMarketing HeaderMarketing SectionNewsletter SectionPricing SectionStats SectionSteps SectionTeam SectionTestimonials SectionTimeline SectionVideo Section
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAPI Keys PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowOrder History PagePost Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
Templates
About PageAcademy PageAccessibility PageAffiliate PageAgency PageAI Product PageAppointment Booking PageBlog PageBlog Post PageBug Bounty PageCareers PageChangelog PageCommunity PageCompare PageContact PageCustomer Story PageCustomers PageDemo Booking PageDevelopers PageDocs Home PageDownload PageEnterprise PageEvents PageExperts PageFAQ PageFeature PageGlossary PageHelp Article PageHelp Center PageHome Services PageImpact PageIntegration Detail PageIntegrations PageJob Detail PageLanding PageLaunch PageLegal PageManifesto PagePortfolio PagePress PageProduct Tour PagePromo PageReal Estate PageReferral PageResearch Report PageRestaurant PageRoadmap PageROI Calculator PageSecurity PageSolutions PageStartups PageStatus PageStorefront PageSwitch PageTemplate Gallery PageTravel PageWaitlist PageYear in Review Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryTheme

Blocks

Order History Page

Blocks

Order History Page React block for Tailwind CSS v4

Onboarding FlowPost Listing Wizard
Live props
Content
currency
locale
State
defaultSelectedId
defaultQuery
defaultStatus
loading
Behavior
helpHref
shopHref
searchShortcut
animateIn
Layout
groupBy
showSearch
showFilter
showMap
showHistory
listWidth400px
height
Appearance
tone
radius
Code
import { OrderHistoryPage } from "@/components/blocks/order-history-page"

<OrderHistoryPage />
  1. Home
  2. Components
  3. Blocks
  4. Order History Page
Pro

Order History Page React block for Tailwind CSS v4

v1.0.0·Added in 1.14.0

A React order history page for an ecommerce account: orders grouped by month with search and filters, and a full order detail beside them.

The list shows every order grouped by month: number, status badge, date, item count, total, photos of the items and the actions that fit its status (Track while it is on the way, Buy again once it ended, Invoice unless it was cancelled). Type in the search field (or press / anywhere) to match order numbers, products and SKUs, and pick a status in the filter (a bottom sheet on phones); No orders match offers Clear filters. Click or tap an order to open it: on wide screens it opens beside the list (drag the divider to resize, the open row lifts), below 768px it slides in as its own view with an Orders back button, swipe back and Escape. Arrow keys move between orders, Home and End jump, Enter opens. The detail shows the tracker (status, arrival or delivery time, milestones, courier with the tracking number to copy, shipment history), the items with quantities and prices, the shipping and billing addresses, the payment method and delivery, the summary with discount, shipping, tax and total, and Return items (inside the return window) or Get help. Buy again, Return items and Invoice show a spinner while their promise runs and a toast when done.

Order History Page is a Pro React block in the React blocks category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add order-history-page, together with Badge, Button, Description List, Empty State, Order tracker and 13 more and the npm packages motion and lucide-react.

Add to a project

Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup

npx wingo-ui@latest add order-history-page

Order History Page is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans

Usage

Import OrderHistoryPage from @/components/blocks/order-history-page.

"use client"

import { OrderHistoryPage } from "@/components/blocks/order-history-page"
import type { OrderHistoryOrder } from "@/components/blocks/order-history-page-data"

export function AccountOrders({ orders }: { orders: OrderHistoryOrder[] }) {
  return (
    <OrderHistoryPage
      orders={orders}
      currency="USD"
      onReorder={async (order) => {
        await fetch("/api/cart", { method: "POST", body: JSON.stringify({ items: order.items }) })
      }}
      onReturn={async (order) => {
        await fetch(`/api/orders/${order.id}/returns`, { method: "POST" })
      }}
      onDownloadInvoice={(order) => {
        window.open(`/api/orders/${order.id}/invoice.pdf`, "_blank")
      }}
      helpHref="/support"
    />
  )
}

Props

  • ordersdefault "ORDER_HISTORY_SAMPLE"
    OrderHistoryOrder[]

    The orders ({ id, number, placedAt, status, items, shipping, shippingMethod, discount, discountCode, tax, total, shippingAddress, billingAddress, payment, eta, deliveredAt, events, courier, returnBy, invoiceUrl, notice }), sorted by placedAt. Defaults to ORDER_HISTORY_SAMPLE (eight orders of Emma Carter in New York).

  • currencydefault "USD"
    string

    ISO 4217 code for every amount.

  • localedefault ""
    string

    Intl locale for money and dates; empty uses the UIProvider's, then the browser's.

  • selectedId
    string | null

    The open order, controlled; null opens none. Pair it with onSelect.

  • defaultSelectedIddefault ""
    string | null

    The open order while uncontrolled. Left out (or empty), wide screens open the newest order; null opens none. Phones always start on the list.

  • onSelect
    (id: string | null) => void

    Called when an order is opened.

  • defaultQuerydefault ""
    string

    The search text on mount.

  • defaultStatusdefault "all"
    "all" | "processing" | "shipped" | "delivered" | "returned" | "cancelled"

    The status filter on mount.

  • onReorder
    (order: OrderHistoryOrder) => void | Promise<unknown>

    Buy again: add the order's items to the cart. A promise shows the button loading; simulated by default with a toast.

  • onReturn
    (order: OrderHistoryOrder) => void | Promise<unknown>

    Return items on a delivered order until its returnBy date; simulated by default with a toast.

  • onDownloadInvoice
    (order: OrderHistoryOrder) => void | Promise<unknown>

    Invoice. Left out, Invoice is a download link to the order's invoiceUrl, and hidden when there is none.

  • onHelp
    (order: OrderHistoryOrder) => void

    Get help; left out it links to helpHref.

  • helpHrefdefault "/help"
    string

    Where Get help goes when there is no onHelp.

  • shopHrefdefault "/"
    string

    The Continue shopping link under the list and the Start shopping link of the empty state; "" hides both.

  • groupBydefault "month"
    "month" | "none"

    Month headings in the list, or one flat list.

  • showSearchdefault true
    boolean

    The search field over the list.

  • showFilterdefault true
    boolean

    The status filter next to the search.

  • showMapdefault false
    boolean

    The route illustration in the tracker.

  • showHistorydefault true
    boolean

    The shipment history in the tracker.

  • searchShortcutdefault "/"
    string

    Focuses the search from anywhere on the page; "" binds nothing.

  • listWidthdefault 400
    number

    The list column on wide screens in px; drag the divider (or use its arrow keys) to resize.

  • tonedefault "neutral"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    The tracker's progress and the Buy again button.

  • radiusdefault "md"
    "sm" | "md" | "lg"

    Panels and cards: 12, 16 or 24px.

  • heightdefault "screen"
    "screen" | "fill"

    screen makes the page exactly the viewport (h-dvh); fill takes what is left in a flex column inside an app shell.

  • loadingdefault false
    boolean

    Skeleton rows while the orders load.

  • animateIndefault true
    boolean

    Rows rise in with a short stagger on mount; off under reduced motion.

  • now
    Date | number

    The reference time for return windows and the tracker; default the live clock.

  • labels
    OrderHistoryPageLabelsInput

    Every visible string, English by default (DEFAULT_ORDER_HISTORY_PAGE_LABELS): title, description, statuses, actions, section titles, toasts, the empty and no-results states.

  • className
    string

    Classes for the root.

  • classNames
    Partial<Record<OrderHistoryPageSlot, string>>

    Classes for header, toolbar, list, group, row, detail, tracker, items, details, summary, help and empty.

Parts

  • DEFAULT_ORDER_HISTORY_PAGE_LABELS

    constant

    The English strings for every visible label, the default of labels.

  • ORDER_HISTORY_STATUS_TONES

    constant

    The badge tone of each status: processing neutral, shipped info, delivered success, returned neutral, cancelled danger.

  • ORDER_HISTORY_SAMPLE

    constant

    Eight sample orders from August to November 2026 (shipped, processing, delivered with a discount, returned, cancelled).

  • ORDER_HISTORY_NOW

    constant

    The sample's clock (Nov 6, 2026, 2:30 PM), so arrival times and return windows stay stable.

  • orderSubtotal

    function

    The sum of price x quantity over an order's items.

  • orderTotal

    function

    The amount charged: the order's total, else subtotal - discount + shipping + tax.

  • OrderHistoryPageProps

    type

    Props of OrderHistoryPage, including the div attributes of the root.

  • OrderHistoryOrder

    type

    One order: number, placedAt, status, items, amounts, addresses, payment and the tracker's eta, events and courier.

  • OrderHistoryItem

    type

    { id, title, variant?, image?, quantity, price, sku? }: one line of an order.

  • OrderHistoryAddress

    type

    { name, company?, line1, line2?, city, region?, postalCode, country?, phone? }.

  • OrderHistoryPayment

    type

    { method, last4?, note? }: Visa ending in 4242, Apple Pay, PayPal.

  • OrderHistoryStatus

    type

    "processing" | "shipped" | "delivered" | "returned" | "cancelled".

  • OrderHistoryPageLabels

    type

    Every label, as in DEFAULT_ORDER_HISTORY_PAGE_LABELS.

  • OrderHistoryPageLabelsInput

    type

    The shape of labels: any subset of OrderHistoryPageLabels, with statuses merged one by one.

  • OrderHistoryStatusFilter

    type

    An OrderHistoryStatus or "all", the type of defaultStatus.

Examples

Open

Phone layout

In a 390px column the rows become cards and an order slides in as its own view with a back button.

Open

Brand tone with the route map

tone="brand", radius="lg" and showMap on an order that is on its way.

Open

Delivered orders and returns

Filtered to delivered, with Return items inside the return window and an Invoice handler.

Open

No results

A search that matches nothing offers Clear filters.

Open

Empty account

No orders yet, with a Start shopping link.

Open

Loading

Skeleton rows in the real layout while the orders load.

Open

A failing action

onReorder rejects: the button stops loading and an error toast shows the message.

Open

Euros, de-DE formatting

currency="EUR" with locale="de-DE" for amounts and dates.

Dependencies

motionlucide-reactbadgebuttondescription-listempty-stateorder-trackerpricesearch-inputselectsplit-viewtoastuse-controllable-stateuse-localecommercedate-utilsmotionrelative-timetonesui-config

Files

  • components/blocks/order-history-page.tsx
  • components/blocks/order-history-page-data.ts

FAQ

Is the React Order History Page block free?

The preview, props and docs are free; copying the source needs a Pro plan. See plans.

How do I install Order History Page?

Run npx wingo-ui@latest add order-history-page. It also adds the Wingo UI items it builds on (Badge, Button, Description List, Empty State, Order tracker and 13 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/order-history-page.

How does Order History Page behave on phones?

Type in the search field (or press / anywhere) to match order numbers, products and SKUs, and pick a status in the filter (a bottom sheet on phones); No orders match offers Clear filters.

See also

Order trackerCheckout PageSplit ViewDescription ListStorefront Page

More React blocks

Post Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
All 26 React blocks

Articles using this component

  • Order History Page Design: List, Detail and Actions

    Build it: screens and apps · Nov 6, 2026 · 9 min read

PreviousOnboarding FlowNext Post Listing Wizard