terra vidhal

Invoice Builder

Component

About

An invoice editor with editable line items, discount and tax, status switching, live totals and a save action.

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

Code

How Invoice Builder 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 { InvoiceBuilder, type InvoiceData } from "@/components/ui/invoice-builder";

const INVOICE: InvoiceData = {
  number: "INV-2048",
  customer: "Alder Studio",
  email: "accounts@alder-studio.example",
  issued: "Mar 04",
  due: "Mar 18",
  notes: "Payment by bank transfer within 14 days. Thank you for the collaboration.",
  taxPercent: 8,
  discountPercent: 10,
  lines: [
    { id: "brand", description: "Brand identity system", quantity: 1, rate: 3200 },
    { id: "landing", description: "Landing page design", quantity: 4, rate: 480 },
    { id: "copy", description: "Product copy sprint", quantity: 2, rate: 350 },
    { id: "motion", description: "Motion and interaction pass", quantity: 3, rate: 420 },
    { id: "handoff", description: "Design handoff and documentation", quantity: 1, rate: 640 },
  ],
};

export default function InvoiceBuilderDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-10 sm:px-6">
      <InvoiceBuilder
        invoice={INVOICE}
        title="New invoice"
        description="Edit line items, adjust tax and discount, then save the draft."
        defaultStatus="sent"
      />
    </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.