InvoicePro
An invoice with status timeline, line items, totals, copyable bank details and pay.
pnpm dlx shadcn@latest add @lode/invoiceWhat's inside
- Status timeline
- Line items and totals
- Copy bank details
- Pay in place
When to use
- Customer portals and billing pages.
When not to use
- Lists of invoices: use a data table.
Installation
pnpm dlx shadcn@latest add @lode/invoiceLands in components/blocks/invoice.tsx with sample data you replace with your own. Pro installs use an API key: see CLI and API keys.
The CLI also installs motion, lucide-react and every Lode component it's built from.
Usage
Import it from @/components/blocks/invoice after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { Invoice } from "@/components/blocks/invoice";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<Invoice />
</main>
);
}API reference
Invoice
An invoice with a status timeline, parties, line items, totals with discount and VAT, copyable bank details and in-place payment. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Reach Print, PDF, Send, Copy IBAN and Pay |
Accessibility
- The amount due is text; status is a badge with words.
- Copy and pay results are announced.
Motion
- Status steps fill; line items fade up; the badge flips to Paid.
Responsive behavior
- Parties stack on phones; the line-item table scrolls horizontally.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Generate PDFs on the server; wire the PDF button to that route.
This page as Markdown, for assistants and coding agents:
/blocks/invoice/markdownThe full library index for assistants is at /llms.txt.
Related
Lode·229 doc pages·llms.txt