Component libraryInvoice preview
Invoice preview
ProA consumer-owned invoice document with semantic parties, dates, line items, totals and native optional actions.
npx shadcn@latest add @tidal-pro/invoice-previewInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/invoice-preview.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
accessibleName, invoiceNumber, status, issueDate, from, billTo, lineItems, lineItemsCaption and totals are required consumer-owned display data. Dates render as native time elements. Parties expose native address attributes/refs. Line items render in a captioned semantic table with row/column headers, native row attributes/refs and a bounded keyboard-scroll region that enters the tab order only when overflow is measured; explicit caller tabIndex wins and composed refs preserve React 19 callback cleanup. Optional dueDate, purchaseOrder, labels, column labels, empty copy, notes, currency note, native table/scroll attributes/refs, footer and heading level remain consumer-owned. Optional native link/button actions preserve href, modified navigation, type/form/disabled/attributes/refs and invoke higher callbacks only after unprevented native handling; disabled links suppress caller handling/navigation while explicit aria-disabled false is retained. The component performs no invoice issue, send, payment, export, accounting, request, network, storage or persistence action.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.