terra vidhal

Orders Table

Component 1

About

A complete orders table with live search, status filter chips driven by a keyboard radio group, sortable columns with aria-sort, per-row and page selection with a mixed select-all state, a bulk action bar that slides in, pagination and an empty state. Status badges update in place after a bulk change and the collected total is computed from paid orders.

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

Code

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

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { OrdersTable, type Order } from "@/components/ui/orders-table";

const ORDERS: Order[] = [
  {
    id: "4821",
    customer: "Mara Ellison",
    email: "mara.ellison@example.com",
    amount: 148,
    status: "paid",
    date: "2026-11-27",
    items: 3,
  },
  {
    id: "4820",
    customer: "Theo Nakamura",
    email: "theo.nakamura@example.com",
    amount: 64,
    status: "pending",
    date: "2026-11-27",
    items: 1,
  },
  {
    id: "4819",
    customer: "Priya Raman",
    email: "priya.raman@example.com",
    amount: 320,
    status: "paid",
    date: "2026-11-26",
    items: 5,
  },
  {
    id: "4818",
    customer: "Jonas Weber",
    email: "jonas.weber@example.com",
    amount: 89,
    status: "refunded",
    date: "2026-11-25",
    items: 2,
  },
  {
    id: "4817",
    customer: "Amara Okafor",
    email: "amara.okafor@example.com",
    amount: 42,
    status: "failed",
    date: "2026-11-24",
    items: 1,
  },
  {
    id: "4816",
    customer: "Lena Fischer",
    email: "lena.fischer@example.com",
    amount: 215,
    status: "paid",
    date: "2026-11-23",
    items: 4,
  },
  {
    id: "4815",
    customer: "Diego Marín",
    email: "diego.marin@example.com",
    amount: 76,
    status: "paid",
    date: "2026-11-22",
    items: 2,
  },
  {
    id: "4814",
    customer: "Sofia Rossi",
    email: "sofia.rossi@example.com",
    amount: 129,
    status: "pending",
    date: "2026-11-21",
    items: 3,
  },
  {
    id: "4813",
    customer: "Noah Bennett",
    email: "noah.bennett@example.com",
    amount: 58,
    status: "paid",
    date: "2026-11-20",
    items: 1,
  },
  {
    id: "4812",
    customer: "Hana Sato",
    email: "hana.sato@example.com",
    amount: 190,
    status: "refunded",
    date: "2026-11-19",
    items: 4,
  },
  {
    id: "4811",
    customer: "Owen Clarke",
    email: "owen.clarke@example.com",
    amount: 34,
    status: "paid",
    date: "2026-11-18",
    items: 1,
  },
  {
    id: "4810",
    customer: "Ines Moreau",
    email: "ines.moreau@example.com",
    amount: 267,
    status: "pending",
    date: "2026-11-17",
    items: 6,
  },
];

export default function OrdersTableDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-12 sm:px-6">
      <OrdersTable
        orders={ORDERS}
        title="Orders"
        description="Every payment across the workspace, newest first."
        pageSize={6}
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    16
  • Audio Waveform

    Audio Waveform

    13
  • Topographic Lines

    Topographic Lines

    12
  • Notification Center

    Notification Center

    11
  • Booking Calendar

    Booking Calendar

    11
  • Spotlight Card

    Spotlight Card

    11
  • Command Palette

    Command Palette

    9
  • Kpi Counter

    Kpi Counter

    9