Componentdata1 KB gzipZero dependencies

Invoice

Invoice layout with line items, tax breakdown and stamped total.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add invoice

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Invoice } from "@/components/ui/invoice"; <Invoice />

Source code

invoice.tsx + 1 helper

Zero 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 />
PropTypeDescription
numberstringConfigures number. (Default: "")
itemsInvoiceLineItem[]Structured list of items rendered by the component. (Default: [])
taxRatenumberConfigures tax rate. (Default: 0.1)
status"draft" | "paid" | "void"Semantic status indicator. (Default: "draft")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.