Componentdata0.84 KB gzipZero dependencies

Order Tracking

Order tracking strip: status dots with dates and courier.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add order-tracking

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { OrderTracking } from "@/components/ui/order-tracking"; <OrderTracking />

Source code

order-tracking.tsx + 1 helper

Zero 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 />
PropTypeDescription
orderIdstringConfigures order id. (Default: "")
stepsOrderTrackStep[]Configures steps. (Default: [])
courierstringConfigures courier.