DataTable
Higher-level Table — built-in search, client-side sort, page size selector, selection counter, toolbar slot.
Use DataTable for typical CRM lists (deals, contacts, tasks) where the user expects search + pagination out of the box. For raw data or server-driven pagination, drop down to Table.
Install
Pull from the workspace packages (already available if you ran pnpm add):
Examples
87-row deals table
| Deal | Stage | Owner | Amount | |
|---|---|---|---|---|
Deal 1 — Acme | new | Alice | $1,000 | |
Deal 2 — OAPPS | qualified | Bob | $1,137 | |
Deal 3 — Notion | won | Carol | $1,274 | |
Deal 4 — Stripe | lost | Dan | $1,411 | |
Deal 5 — Vercel | new | Eve | $1,548 | |
Deal 6 — Acme | qualified | Alice | $1,685 | |
Deal 7 — OAPPS | won | Bob | $1,822 | |
Deal 8 — Notion | lost | Carol | $1,959 | |
Deal 9 — Stripe | new | Dan | $2,096 | |
Deal 10 — Vercel | qualified | Eve | $2,233 |
1–10 of 87
Per page
Guidelines
✓
Pass searchableKeys for the columns the user actually searches by.Searching by id is rarely what the user wants — name, owner, email are typical.
✕
Use DataTable for >1k rows in the browser.Move sort + filter to the server and feed back already-paginated data.