TidalUI

Invoice preview preview

A consumer-owned invoice document with semantic parties, dates, line items, totals and native optional actions.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/invoice-preview

Import components/ui/tidal.css, components/ui/invoice-preview.css. Wrap installed components in tidal-scope.

Preview

Invoice preview component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/invoice-preview.css";
import{TidalInvoicePreview}from"./components/ui/invoice-preview";
export default(p:Parameters<typeof TidalInvoicePreview>[0])=><div className="tidal-scope"><TidalInvoicePreview {...p}/></div>;

API and props

TidalInvoicePreview.accessibleName (required)
string

Required accessible name value accepted by this exported component.

TidalInvoicePreview.billTo (required)
TidalInvoiceParty

Required bill to value accepted by this exported component.

TidalInvoicePreview.from (required)
TidalInvoiceParty

Required from value accepted by this exported component.

TidalInvoicePreview.invoiceNumber (required)
ReactNode

Required invoice number value accepted by this exported component.

TidalInvoicePreview.issueDate (required)
TidalInvoiceDate

Required issue date value accepted by this exported component.

TidalInvoicePreview.lineItems (required)
ReadonlyArray<TidalInvoiceLineItem>

Required line items value accepted by this exported component.

TidalInvoicePreview.lineItemsCaption (required)
ReactNode

Required line items caption value accepted by this exported component.

TidalInvoicePreview.status (required)
ReactNode

Required status value accepted by this exported component.

TidalInvoicePreview.totals (required)
ReadonlyArray<TidalInvoiceTotal>

Required totals value accepted by this exported component.

TidalInvoicePreview.actions
ReadonlyArray<TidalInvoiceAction> | undefined

Optional actions value accepted by this exported component.

TidalInvoicePreview.columnLabels
Partial<TidalInvoiceColumnLabels> | undefined

Optional column labels value accepted by this exported component.

TidalInvoicePreview.currencyNote
ReactNode

Optional currency note value accepted by this exported component.

TidalInvoicePreview.dueDate
TidalInvoiceDate | undefined

Optional due date value accepted by this exported component.

TidalInvoicePreview.emptyLineItemsMessage
ReactNode

Optional empty line items message value accepted by this exported component.

TidalInvoicePreview.footer
ReactNode

Optional footer value accepted by this exported component.

TidalInvoicePreview.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalInvoicePreview.labels
Partial<TidalInvoiceLabels> | undefined

Optional labels value accepted by this exported component.

TidalInvoicePreview.lineItemsScrollProps
Omit<HTMLAttributes<HTMLDivElement>, "aria-label" | "children"> | undefined

Optional line items scroll props value accepted by this exported component.

TidalInvoicePreview.lineItemsScrollRef
Ref<HTMLDivElement> | undefined

Optional line items scroll ref value accepted by this exported component.

TidalInvoicePreview.notes
ReactNode

Optional notes value accepted by this exported component.

TidalInvoicePreview.purchaseOrder
ReactNode

Optional purchase order value accepted by this exported component.

TidalInvoicePreview.tableProps
Omit<TableHTMLAttributes<HTMLTableElement>, "children"> | undefined

Optional table props value accepted by this exported component.

TidalInvoicePreview.tableRef
Ref<HTMLTableElement> | undefined

Optional table ref value accepted by this exported component.

TidalInvoicePreview.title
ReactNode

Optional title value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas