Componentdata0.84 KB gzipZero dependencies
Order Tracking
Order tracking strip: status dots with dates and courier.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add order-trackingOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { OrderTracking } from "@/components/ui/order-tracking"; <OrderTracking />Source code
order-tracking.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxorder-tracking.tsx60 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface OrderTrackStep { id: string; label: string; date?: string; done?: boolean;} export interface OrderTrackingProps extends React.HTMLAttributes<HTMLDivElement> { orderId: string; steps: OrderTrackStep[]; courier?: string;} Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { OrderTracking } from "@/components/ui/order-tracking"; <OrderTracking />| Prop | Type | Description |
|---|---|---|
| orderId | string | Configures order id. (Default: "") |
| steps | OrderTrackStep[] | Configures steps. (Default: []) |
| courier | string | Configures courier. |