terra vidhal

Procurement Approval

Component

About

A purchase approval desk with a filterable request queue, amount-based approval chains, department budget impact bars, line-item tables, decision notes, approve, request-changes and reject actions, audit trails and live status counts.

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

Code

How Procurement Approval 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 { ProcurementApproval, type PurchaseRequest } from "@/components/ui/procurement-approval";

const REQUESTS: PurchaseRequest[] = [
  {
    id: "PR-2041",
    title: "Laptop refresh for design team",
    requester: "Maya Ortiz",
    department: "Product design",
    category: "Hardware",
    vendor: "Approved hardware supplier",
    amount: 4200,
    urgency: "normal",
    submitted: "Today, 08:40",
    budget: { total: 30000, spent: 18500 },
    lines: [
      { label: "14-inch laptop, 32 GB", quantity: 2, unitCost: 1850 },
      { label: "Docking station", quantity: 2, unitCost: 250 },
    ],
  },
  {
    id: "PR-2042",
    title: "Ergonomic chairs for the studio",
    requester: "Devon Clarke",
    department: "Facilities",
    category: "Furniture",
    vendor: "Workplace furniture partner",
    amount: 980,
    urgency: "low",
    submitted: "Today, 09:05",
    budget: { total: 12000, spent: 3200 },
    lines: [{ label: "Task chair with lumbar support", quantity: 4, unitCost: 245 }],
  },
  {
    id: "PR-2043",
    title: "Temperature-controlled storage unit",
    requester: "Priya Raman",
    department: "Research lab",
    category: "Equipment",
    vendor: "Lab equipment vendor",
    amount: 15600,
    urgency: "high",
    submitted: "Yesterday, 16:12",
    budget: { total: 40000, spent: 22000 },
    approvedSteps: 1,
    lines: [
      { label: "Bench-top storage unit, 240 L", quantity: 1, unitCost: 13200 },
      { label: "Installation and calibration", quantity: 1, unitCost: 2400 },
    ],
  },
  {
    id: "PR-2044",
    title: "Offsite planning venue deposit",
    requester: "Lucas Grant",
    department: "Operations",
    category: "Services",
    vendor: "Events coordination partner",
    amount: 2400,
    urgency: "normal",
    submitted: "Yesterday, 11:30",
    budget: { total: 18000, spent: 6100 },
    status: "approved",
    approvedSteps: 2,
    lines: [
      { label: "Venue deposit", quantity: 1, unitCost: 1800 },
      { label: "Catering hold", quantity: 1, unitCost: 600 },
    ],
  },
  {
    id: "PR-2045",
    title: "Analytics licence renewal",
    requester: "Sofia Mendes",
    department: "Data",
    category: "Software",
    vendor: "Software reseller",
    amount: 8600,
    urgency: "normal",
    submitted: "Mon, 14:22",
    budget: { total: 24000, spent: 15200 },
    status: "held",
    approvedSteps: 1,
    lines: [
      { label: "Annual seat licence", quantity: 12, unitCost: 650 },
      { label: "Onboarding workshop", quantity: 1, unitCost: 800 },
    ],
  },
];

export default function ProcurementApprovalDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <ProcurementApproval
        requests={REQUESTS}
        startingRequestId="PR-2041"
        currency="$"
        title="Purchase approval desk"
        description="Requests arrive with their own chain. Approve, send back or reject, with the budget and audit trail always in view."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    26
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Kanban Board

    Kanban Board

    17
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Booking Calendar

    Booking Calendar

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.