Kavi Katiyar

Order History

Cards 159

About

Order History – Track every step. Shows order progress from placed to delivered with clear timeline.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Order History to your project and fits it to your theme.

Code

How Order History is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

// demo.tsx

import React from "react";
import TrackingTimeline, { TimelineItem } from "@/components/ui/order-history";
import {
  Home,
  Package,
  Ship,
  Warehouse,
  ClipboardCheck,
  PackageCheck,
} from "lucide-react";

const orderHistoryItems: TimelineItem[] = [
  {
    id: 1,
    status: "completed",
    title: "Order Placed",
    date: "20 Jun 2024, 08:45",
    icon: <ClipboardCheck className="h-4 w-4 text-white" />,
  },
  {
    id: 2,
    status: "completed",
    title: "Order Processed",
    date: "21 Jun 2024, 02:30",
    icon: <Package className="h-4 w-4 text-white" />,
  },
  {
    id: 3,
    status: "completed",
    title: "Pick up",
    date: "22 Jun 2024, 12:34",
    icon: <Warehouse className="h-4 w-4 text-white" />,
  },
  {
    id: 4,
    status: "in-progress",
    title: "Out for shipment",
    date: "Today",
    icon: <Ship className="h-4 w-4 text-primary" />,
  },
  {
    id: 5,
    status: "pending",
    title: "Out for Delivery",
    date: "24 Jun 2024",
    icon: <PackageCheck className="h-4 w-4 text-muted-foreground/50" />,
  },
  {
    id: 6,
    status: "pending",
    title: "Delivered",
    date: "24 Jun 2024",
    icon: <Home className="h-4 w-4 text-muted-foreground/50" />,
  },
];

const TrackingTimelineDemo = () => {
  return (
    <div className="flex h-full w-full items-center justify-center bg-background p-10">
      <div className="w-full max-w-md rounded-lg border bg-card p-6 shadow-sm">
        <h2 className="mb-6 text-xl font-bold text-card-foreground">Order History</h2>
        <TrackingTimeline items={orderHistoryItems} />
      </div>
    </div>
  );
};

export default TrackingTimelineDemo;

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    981
  • Bento Product Features

    Bento Product Features

    831
  • Testimonial Slider

    Testimonial Slider

    716
  • Card

    Card

    608
  • Order Confirmation Card

    Order Confirmation Card

    504
  • Project Detail View

    Project Detail View

    408
  • State

    State

    393
  • Animated Card

    Animated Card

    393

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3