Componentdata1 KB gzipZero dependencies
Invoice
Invoice layout with line items, tax breakdown and stamped total.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add invoiceOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Invoice } from "@/components/ui/invoice"; <Invoice />Source code
invoice.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxinvoice.tsx128 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface InvoiceLineItem { label: string; qty: number; price: string;} export interface InvoiceProps extends React.HTMLAttributes<HTMLElement> { number: string; items: InvoiceLineItem[]; taxRate?: number; status?: "draft" | "paid" | "void"; className?: string;}Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Invoice } from "@/components/ui/invoice"; <Invoice />| Prop | Type | Description |
|---|---|---|
| number | string | Configures number. (Default: "") |
| items | InvoiceLineItem[] | Structured list of items rendered by the component. (Default: []) |
| taxRate | number | Configures tax rate. (Default: 0.1) |
| status | "draft" | "paid" | "void" | Semantic status indicator. (Default: "draft") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |