Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Invoice Row

ProNew

One invoice in a list: number, description, status in words with an icon, dates and amount, with overdue and refunded treated distinctly and a slot for actions.

Installation

pnpm dlx shadcn@latest add @viewport/invoice-row

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
number*string

The invoice's number, e.g. "INV-2026-012".

—
descriptionstring

Who it is for, or what it covers.

—
amount*string

The amount, already formatted.

—
status*keyof typeof states—
issuedstring

When it was issued, and when it is or was due, already formatted.

—
duestring—
hrefstring

Opens the invoice. The number becomes the link.

—
actionsReact.ReactNode

Buttons at the end of the row, e.g. download or pay.

—

Accessibility

  • Status is a word and an icon as well as a color.
  • The number is the link; actions name the invoice they act on.
  • Dates drop under the number on narrow containers.
  • Server component with no client JavaScript.