Skip to content
mdxcn is now part of Shadcn Labs. details

invoice

GraphInvoice

An invoice with sender, recipient, line items and totals. Write the line items as a Markdown table and the sender and recipient as text. For a general table, use Table.

use it
Good for from, bill-to, line items, and totals.
instead
A generic table is Table.

studio invoice

[ INVOICE 0041 ]

From

mdxcn

Bill to

Acme Studio

No.
0041
Issued
Mar 12, 2026
Due
Apr 11, 2026
DescriptionQtyRateAmount
Design system14,2004,200
Motion pass11,8001,800
Docs rewrite8h1801,440
Amount due
7,440

Net 30. Wire to the account on file.

<GraphInvoice
  title="INVOICE 0041"
  from="mdxcn"
  to="Acme Studio"
>

- No.: 0041
- Issued: Mar 12, 2026
- Due: Apr 11, 2026

| Description | Qty | Rate | Amount |
| --- | --- | --- | --- |
| Design system | 1 | 4,200 | 4,200 |
| Motion pass | 1 | 1,800 | 1,800 |
| Docs rewrite | 8h | 180 | 1,440 |

**Amount due** 7,440

Net 30. Wire to the account on file.

</GraphInvoice>

install

command

quote

[ QUOTE ]

From

mdxcn

Bill to

Northwind

Valid until
May 01
DescriptionAmount
Registry install0
Custom graph2,400
Estimate
2,400
<GraphInvoice title="QUOTE" from="mdxcn" to="Northwind">

- Valid until: May 01

| Description | Amount |
| --- | --- |
| Registry install | 0 |
| Custom graph | 2,400 |

**Estimate** 2,400

</GraphInvoice>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
fromInvoiceParty | string—Issuer name. A string, or name plus address lines.
toInvoiceParty | string—Recipient name. A string, or name plus address lines.
metaInvoiceMeta[]—Fields like number, issued, due.
itemsInvoiceItem[]—Line items. qty and rate are optional; columns hide when unused. Optional when children are Markdown.
childrenMarkdown—| Description | Amount | | --- | --- | | Design system | 4,200 |
totalsInvoiceTotal[]—Rows under the items. Set accent on the amount due.
notestring—Muted line under the totals. Payment terms, etc.
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.