Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Data display

Invoice table

A plain semantic table with sortable headings, row selection, status badges, and a totals footer.

bunx --bun @getweini/cli@latest add button card checkbox dropdown-menu empty-state icon-button skeleton table toggle-group
Customize
  • This uses the plain Table parts, so sorting, filtering and selection are ordinary state in the block. Reach for the DataTable block instead when you need pagination, column visibility and bulk actions out of the box.
  • Each sortable heading holds a real ghost Button and sets `aria-sort`, so pointer and keyboard users share one control. Add a column by adding one `TableHead` and one `TableCell` per row.
  • The caption is screen-reader only; the page heading already names the table. Totals sit in `TableFooter` with row headers, and money is formatted with `locale` and `currency`.
  • The Issued column is hidden below 768px; the table scrolls sideways inside its own container rather than the page. Pass `loading` for skeleton rows and filter to a status with no invoices to see the empty row.
  • Selecting rows enables Send reminders and sets `data-state="selected"` on each row. The block emits `export` and `remind` with the selected ids.