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>
);
}








