Data Table
A sortable table powered by TanStack Table, styled with the lily table primitives.
| INV001 | Paid | $250.00 |
| INV002 | Pending | $150.00 |
| INV003 | Unpaid | $350.00 |
| INV004 | Paid | $450.00 |
| INV005 | Pending | $550.00 |
The data table is a composition: it pairs the Table primitives with @tanstack/table-core for sorting, filtering, and pagination. Click a
column header to sort.
Installation
Installs the style saved in lily.json. For a new Diamond project,
run lily-svelte init --style diamond first.
Install the lily base, the `table` component, and the dependency.
npx lily-svelte@latest init
npx lily-svelte@latest add table
npm install @tanstack/table-core