MRT logoMaterial React Table

Minimal Example

Material React Table gives you a lot out of the box, but it's also easy to turn off any features that you do not need.

Every feature has an enable... prop that let's you turn it on or off.

For example, you can turn off sorting or hide the top or bottom toolbars if you want.


Demo

Open StackblitzOpen Code SandboxOpen on GitHub
DylanMurray261 Erdman FordEast DaphneKentucky
RaquelKohler769 Dominic GroveColumbusOhio
ErvinReinger566 Brakus InletSouth LindaWest Virginia
BrittanyMcCullough722 Emie StreamLincolnNebraska
BransonFrami32188 Larkin TurnpikeCharlestonSouth Carolina

Source Code

1import React, { FC, useMemo } from 'react';
2import MaterialReactTable, { MRT_ColumnDef } from 'material-react-table';
3import { data, Person } from './makeData';
4
5export const Example: FC = () => {
6 const columns = useMemo<MRT_ColumnDef<Person>[]>(
7 //column definitions...
32 );
33
34 return (
35 <MaterialReactTable
36 columns={columns}
37 data={data}
38 enableColumnActions={false}
39 enableColumnFilters={false}
40 enablePagination={false}
41 enableSorting={false}
42 enableBottomToolbar={false}
43 enableTopToolbar={false}
44 muiTableBodyRowProps={{ hover: false }}
45 />
46 );
47};
48
49export default Example;
50

View Extra Storybook Examples