Skip to content

Data table

Pro

Browse, sort, filter, select and act on records, from the browser or a server, with saved views and a compact form. Not an M3 component (@windmorph/react-pro).

import { DataTable, DataTableToolbar, DataTableView, DataTablePagination, DataTableFilterChips, DataTableFilterDialog, DataTableColumnSettings, useDataTable } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

Customer
City
Total
Alex MorganLyon120
Sam RiveraMunich86
Jo BauerZagreb240
Noor KhanLeeds54
1–4 of 4

Code

import { DataTable } from '@windmorph/react-pro'; <DataTable  aria-label="Orders"  compactBelow={false}  columns={[    { id: 'customer', header: 'Customer', accessor: (row) => row.customer, rowHeader: true },    { id: 'total', header: 'Total', accessor: (row) => row.total, type: 'number' },  ]}  rows={[    { id: '1', customer: 'Alex Morgan', total: 120 },    { id: '2', customer: 'Sam Rivera', total: 86 },  ]}  getRowId={(row) => row.id}/>

Examples

Search, sort, filter, columns and pages

Selection, a bulk bar and row actions

Data from a server

Pinned columns

Column widths

A plain table

Rows that scroll under the header