terra vidhal

Payroll Run

Component

About

A payroll run workspace with editable hours, overtime and bonuses on desktop tables and mobile cards, per-person gross, tax and net, animated regular/overtime/bonus totals, inclusion toggles, search, an approval summary and a queued-payslips confirmation.

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

Code

How Payroll Run 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 { PayrollRun, type PayrollEmployee } from "@/components/ui/payroll-run";

const EMPLOYEES: PayrollEmployee[] = [
  { id: "amara", name: "Amara Okafor", role: "Product designer", rate: 52, hours: 72, overtime: 4, bonus: 250 },
  { id: "theo", name: "Theo Nakamura", role: "Backend engineer", rate: 68, hours: 80, overtime: 6, bonus: 0 },
  { id: "lena", name: "Lena Fischer", role: "Support lead", rate: 41, hours: 76, overtime: 0, bonus: 150 },
  { id: "jonas", name: "Jonas Weber", role: "Data analyst", rate: 47, hours: 80, overtime: 2, bonus: 0 },
  { id: "priya", name: "Priya Raman", role: "QA engineer", rate: 44, hours: 68, overtime: 0, bonus: 100 },
  { id: "sam", name: "Sam Rivera", role: "Account manager", rate: 46, hours: 80, overtime: 0, bonus: 300 },
  { id: "noah", name: "Noah Bennett", role: "Content editor", rate: 38, hours: 60, overtime: 0, bonus: 0 },
];

export default function PayrollRunDemo() {
  return (
    <main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <PayrollRun
        employees={EMPLOYEES}
        period="Nov 1 – Nov 15"
        taxRate={0.22}
        title="Mid-month payroll"
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

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