ReportTable
Read-only table with progressive "load more" pagination for reports and dashboards
A plain, read-only table for report sections and dashboard cards: it renders the first
pageSize rows, a "load more" button for the rest and a "Showing X of Y records" line. It
has no sorting, filtering or row actions — for CRUD lists use ListPage
or DataTable. Also exported as SimpleTable.
Basic Usage
'use client'
import { ReportTable } from '@telamonjs/ui'
const columns = [
{ key: 'month', header: 'Month' },
{ key: 'customer.name', header: 'Customer' }, // dot paths read nested values
{
key: 'total',
header: 'Total',
className: 'text-right',
render: (row: Revenue) => row.total.toFixed(2),
},
]
export function RevenueTable({ rows }: { rows: Revenue[] }) {
return <ReportTable data={rows} columns={columns} pageSize={20} />
}Props
Prop
Type
Examples
Without the Footer
<ReportTable data={topProducts} columns={columns} pageSize={10} showFooter={false} />Hide the count line when the surrounding card already states the total, or when the table is short enough that the count adds nothing.
Keyboard-Scrollable Region
<ReportTable
data={rows}
columns={columns}
maxHeight='300px'
scrollProps={{ tabIndex: 0, role: 'region', 'aria-label': 'Revenue by month' }}
/>Related Components
- DataTable - Sorting, filtering, selection and row actions
- ExportButtons - Export the same rows to CSV, Excel or PDF