ValyroUI Русская версия

Order Tracking

Order tracking: stages, carrier, tracking number and history. Pro · Shop and payments › Cart and orders

Order status page: placed → paid → shipped → out for delivery → delivered, with timestamps, the delivery estimate, carrier and tracking number, scan history, items and help actions.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add order-tracking
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { OrderTracking } from 'valyro-ui-pro';

Props

PropTypeDefault
orderNumber *stringOrder number in the heading, formatted by labels.order.
status *'placed' | 'paid' | 'shipped' | 'outForDelivery' | 'delivered'Furthest stage reached.
timestampsPartial<Record<OrderTrackingStage, DateInput>>{}When each stage was reached.
exceptionReactNodeA delivery problem at the current stage (failed attempt, address issue); shown as a warning.
etaDateInput | { from: DateInput; to: DateInput }Expected delivery: a day, or a window.
carrierOrderTrackingCarrierCarrier section: name, a copyable tracking number and, with url, a link to the carrier's tracking page.
eventsOrderTrackingEvent[][]Carrier scan events, newest first. The first three show until expanded.
itemsOrderTrackingItem[][]Products in the shipment, with thumbnail, variant, quantity and line total.
currencystring'USD'Currency of item prices. Default USD.
shippingAddressReactNodeDelivery address in a "Shipping to" section, rendered inside <address>.
actionsReactNodeHelp buttons ("Contact support", "Start a return").
headingLevel2 | 3 | 42Heading level of the order title; sections use the next level. Default 2.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<OrderTrackingLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Checkout Form · Next: Invoice · All Shop and payments