Components/Data Table
Data Table
Pre-built table with built-in sorting, pagination, and an optional row-click handler.
| PAY-728 | sam@example.com | Paid | $100.00 |
| PAY-729 | alex@example.com | Pending | $250.00 |
| PAY-730 | jamie@example.com | Failed | $50.00 |
| PAY-731 | kris@example.com | Paid | $175.00 |
Installation
npx ajaxui add data-tableProps
| Prop | Type | Default | Description |
|---|---|---|---|
| data | T[] | — | — |
| columns | DataTableColumn<T>[] | — | — |
| rowKey | (row, i) => string | — | — |
| pageSize | number | 10 | — |
| onRowClick | (row: T) => void | — | — |
| emptyState | ReactNode | "No data." | — |