# React tables libraries

React table libraries display rows of data in a grid with sorting, filtering, and pagination. A headless library manages table state and row processing while the application supplies the markup and styles. These libraries let admin panels, dashboards, and internal tools show and edit large datasets.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [TanStack Table](#tanstack-table) | 136.5M | 28.6K | Oct 2026 | MIT |
| [MUI X Data Grid](#mui-x-data-grid) | 16.3M | 5.9K | Nov 2026 | MIT |
| [AG Grid](#ag-grid) | 15.3M | 15.7K | Nov 2026 | MIT |
| [React Virtualized](#react-virtualized) | 8.7M | 27.1K | Nov 2026 | MIT |
| [@rc-component/table](#rc-component-table) | 7.7M | 1.4K | Aug 2026 | MIT |
| [react-data-grid](#react-data-grid) | 3.1M | 7.7K | Nov 2026 | MIT |
| [Material React Table](#material-react-table) | 1.8M | 1.8K | Mar 2025 | MIT |
| [React Data Table Component](#react-data-table-component) | 1.2M | 2.2K | Nov 2026 | Apache-2.0 |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[TanStack Table](#tanstack-table) has the most monthly downloads in this comparison, at 136.5M.

## Capabilities

| Library | Ready-made table component | Row virtualization |
| --- | --- | --- |
| [TanStack Table](#tanstack-table) | No | Via plugin |
| [MUI X Data Grid](#mui-x-data-grid) | Yes | Yes |
| [AG Grid](#ag-grid) | Yes | Yes |
| [React Virtualized](#react-virtualized) | Yes | Yes |
| [@rc-component/table](#rc-component-table) | Yes | Yes |
| [react-data-grid](#react-data-grid) | Yes | Yes |
| [Material React Table](#material-react-table) | Yes | Yes |
| [React Data Table Component](#react-data-table-component) | Yes | No |

## Libraries

### TanStack Table

[GitHub](https://github.com/TanStack/table) · [npm](https://www.npmjs.com/package/@tanstack/react-table) · [Docs](https://tanstack.com/table/latest/docs/framework/react/quick-start)

Manages table state and row processing while the application builds the interface.

- Downloads / mo: 136.5M
- Stars: 28.6K
- Last release: 9.3.1
- License: MIT
- Capabilities: [From the TanStack Table docs](https://tanstack.com/table/latest/docs/framework/react/quick-start)

**Strengths**

- **Leaves markup to the application.** Build the table interface with custom markup and a design system.
- **Adds features individually.** Register sorting, filtering, and pagination features only when needed.

**Watch out for**

- **Table interface needs implementation.** Provide markup, styles, and interactive controls alongside the table logic.

```sh
npm install @tanstack/react-table@9.3.1
```

**shadcn-ui/ui** (128.0K stars)

[shadcn-ui/ui](https://github.com/shadcn-ui/ui) 

```typescript
export function DataTable({
  data: initialData,
}: {
  data: z.infer<typeof schema>[]
}) {
  const [data, setData] = React.useState(() => initialData)
  const [rowSelection, setRowSelection] = React.useState({})
  const [columnVisibility, setColumnVisibility] =
    React.useState<ColumnVisibilityState>({})
  const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
    []
  )
  const [sorting, setSorting] = React.useState<SortingState>([])
  const [pagination, setPagination] = React.useState({
    pageIndex: 0,
    pageSize: 10,
  })
  const sortableId = React.useId()
  const sensors = useSensors(
    useSensor(MouseSensor, {}),
    useSensor(TouchSensor, {}),
    useSensor(KeyboardSensor, {})
  )

  const dataIds = React.useMemo<UniqueIdentifier[]>(
    () => data?.map(({ id }) => id) || [],
    [data]
  )

  const table = useTable({
    features,
    data,
    columns,
    state: {
      sorting,
      columnVisibility,
      rowSelection,
      columnFilters,
      pagination,
    },
    getRowId: (row) => row.id.toString(),
    enableRowSelection: true,
    onRowSelectionChange: setRowSelection,
    onSortingChange: setSorting,
    onColumnFiltersChange: setColumnFilters,
    onColumnVisibilityChange: setColumnVisibility,
    onPaginationChange: setPagination,
  })

  function handleDragEnd(event: DragEndEvent) {
    const { active, over } = event
    if (active && over && active.id !== over.id) {
      setData((data) => {
        const oldIndex = dataIds.indexOf(active.id)
        const newIndex = dataIds.indexOf(over.id)
        return arrayMove(data, oldIndex, newIndex)
      })
    }
  }

  return (
    <Tabs
      defaultValue="outline"
      className="w-full flex-col justify-start gap-6"
    >
      <div className="flex items-center justify-between px-4 lg:px-6">
        <Label htmlFor="view-selector" className="sr-only">
          View
        </Label>
        <Select defaultValue="outline">
          <SelectTrigger
            className="flex w-fit @4xl/main:hidden"
            size="sm"
            id="view-selector"
          >
            <SelectValue placeholder="Select a view" />
          </SelectTrigger>
          <SelectContent>
            <SelectItem value="outline">Outline</SelectItem>
            <SelectItem value="past-performance">Past Performance</SelectItem>
            <SelectItem value="key-personnel">Key Personnel</SelectItem>
            <SelectItem value="focus-documents">Focus Documents</SelectItem>
          </SelectContent>
        </Select>
        <TabsList className="hidden **:data-[slot=badge]:size-5 **:data-[slot=badge]:rounded-full **:data-[slot=badge]:bg-muted-foreground/30 **:data-[slot=badge]:px-1 @4xl/main:flex">
          <TabsTrigger value="outline">Outline</TabsTrigger>
          <TabsTrigger value="past-performance">
            Past Performance <Badge variant="secondary">3</Badge>
          </TabsTrigger>
          <TabsTrigger value="key-personnel">
            Key Personnel <Badge variant="secondary">2</Badge>
          </TabsTrigger>
          <TabsTrigger value="focus-documents">Focus Documents</TabsTrigger>
        </TabsList>
        <div className="flex items-center gap-2">
          <DropdownMenu>
            <DropdownMenuTrigger asChild>
              <Button variant="outline" size="sm">
                <IconLayoutColumns />
                <span className="hidden lg:inline">Customize Columns</span>
                <span className="lg:hidden">Columns</span>
                <IconChevronDown />
              </Button>
            </DropdownMenuTrigger>
            <DropdownMenuContent align="end" className="w-56">
              {table
                .getAllColumns()
                .filter(
                  (column) =>
                    typeof column.accessorFn !== "undefined" &&
                    column.getCanHide()
                )
                .map((column) => {
                  return (
                    <DropdownMenuCheckboxItem
                      key={column.id}
                      className="capitalize"
                      checked={column.getIsVisible()}
                      onCheckedChange={(value) =>
                        column.toggleVisibility(!!value)
                      }
                    >
                      {column.id}
                    </DropdownMenuCheckboxItem>
                  )
                })}
            </DropdownMenuContent>
          </DropdownMenu>
          <Button variant="outline" size="sm">
            <IconPlus />
            <span className="hidden lg:inline">Add Section</span>
          </Button>
        </div>
      </div>
      <TabsContent
        value="outline"
        className="relative flex flex-col gap-4 overflow-auto px-4 lg:px-6"
      >
        <div className="overflow-hidden rounded-lg border">
          <DndContext
            collisionDetection={closestCenter}
            modifiers={[restrictToVerticalAxis]}
            onDragEnd={handleDragEnd}
            sensors={sensors}
            id={sortableId}
          >
            <Table>
              <TableHeader className="sticky top-0 z-10 bg-muted">
                {table.getHeaderGroups().map((headerGroup) => (
                  <TableRow key={headerGroup.id}>
                    {headerGroup.headers.map((header) => {
                      return (
                        <TableHead key={header.id} colSpan={header.colSpan}>
                          {header.isPlaceholder ? null : (
                            <FlexRender header={header} />
                          )}
                        </TableHead>
                      )
                    })}
                  </TableRow>
                ))}
              </TableHeader>
              <TableBody className="**:data-[slot=table-cell]:first:w-8">
                {table.getRowModel().rows?.length ? (
                  <SortableContext
                    items={dataIds}
                    strategy={verticalListSortingStrategy}
                  >
                    {table.getRowModel().rows.map((row) => (
                      <DraggableRow key={row.id} row={row} />
                    ))}
                  </SortableContext>
                ) : (
                  <TableRow>
                    <TableCell
                      colSpan={columns.length}
                      className="h-24 text-center"
                    >
                      No results.
                    </TableCell>
                  </TableRow>
                )}
              </TableBody>
            </Table>
          </DndContext>
        </div>
        <div className="flex items-center justify-between px-4">
          <div className="hidden flex-1 text-sm text-muted-foreground lg:flex">
            {table.getFilteredSelectedRowModel().rows.length} of{" "}
            {table.getFilteredRowModel().rows.length} row(s) selected.
          </div>
          <div className="flex w-full items-center gap-8 lg:w-fit">
            <div className="hidden items-center gap-2 lg:flex">
              <Label htmlFor="rows-per-page" className="text-sm font-medium">
                Rows per page
              </Label>
              <Select
                value={`${table.state.pagination.pageSize}`}
                onValueChange={(value) => {
                  table.setPageSize(Number(value))
                }}
              >
                <SelectTrigger size="sm" className="w-20" id="rows-per-page">
                  <SelectValue placeholder={table.state.pagination.pageSize} />
                </SelectTrigger>
                <SelectContent side="top">
                  {[10, 20, 30, 40, 50].map((pageSize) => (
                    <SelectItem key={pageSize} value={`${pageSize}`}>
                      {pageSize}
                    </SelectItem>
                  ))}
                </SelectContent>
              </Select>
            </div>
            <div className="flex w-fit items-center justify-center text-sm font-medium">
              Page {table.state.pagination.pageIndex + 1} of{" "}
              {table.getPageCount()}
            </div>
            <div className="ml-auto flex items-center gap-2 lg:ml-0">
              <Button
                variant="outline"
                className="hidden h-8 w-8 p-0 lg:flex"
                onClick={() => table.setPageIndex(0)}
                disabled={!table.getCanPreviousPage()}
              >
                <span className="sr-only">Go to first page</span>
                <IconChevronsLeft />
              </Button>
              <Button
                variant="outline"
                className="size-8"
                size="icon"
                onClick={() => table.previousPage()}
                disabled={!table.getCanPreviousPage()}
              >
                <span className="sr-only">Go to previous page</span>
                <IconChevronLeft />
              </Button>
              <Button
                variant="outline"
                className="size-8"
                size="icon"
                onClick={() => table.nextPage()}
                disabled={!table.getCanNextPage()}
              >
                <span className="sr-only">Go to next page</span>
                <IconChevronRight />
              </Button>
              <Button
                variant="outline"
                className="hidden size-8 lg:flex"
                size="icon"
                onClick={() => table.setPageIndex(table.getPageCount() - 1)}
                disabled={!table.getCanNextPage()}
              >
                <span className="sr-only">Go to last page</span>
                <IconChevronsRight />
              </Button>
            </div>
          </div>
        </div>
      </TabsContent>
      <TabsContent
        value="past-performance"
        className="flex flex-col px-4 lg:px-6"
      >
        <div className="aspect-video w-full flex-1 rounded-lg border border-dashed"></div>
      </TabsContent>
      <TabsContent value="key-personnel" className="flex flex-col px-4 lg:px-6">
        <div className="aspect-video w-full flex-1 rounded-lg border border-dashed"></div>
      </TabsContent>
      <TabsContent
        value="focus-documents"
        className="flex flex-col px-4 lg:px-6"
      >
        <div className="aspect-video w-full flex-1 rounded-lg border border-dashed"></div>
      </TabsContent>
    </Tabs>
  )
}

```

[apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx](https://github.com/shadcn-ui/ui/blob/dd41d19e2f80ff6891951f7ced74c2c9a650b065/apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx#L358-L637) · [More projects using TanStack Table →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20%40tanstack/react-table&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
'use client';
import React from 'react';
import { tableFeatures, useTable, type ColumnDef } from '@tanstack/react-table';

type Person = { firstName: string };
const data: Person[] = [{ firstName: 'Tanner' }];
const features = tableFeatures({});
const columns: ColumnDef<typeof features, Person>[] = [{ accessorKey: 'firstName', header: 'First name' }];

export default function PersonTable() {
  const table = useTable({ features, columns, data });
  return (
    <table><tbody>
      {table.getRowModel().rows.map((row) => (
        <tr key={row.id}>{row.getAllCells().map((cell) => (
          <td key={cell.id}><table.FlexRender cell={cell} /></td>
        ))}</tr>
      ))}
    </tbody></table>
  );
}

```

From [quick-start.md](https://tanstack.com/table/latest/docs/framework/react/quick-start)

### MUI X Data Grid

[GitHub](https://github.com/mui/mui-x) · [npm](https://www.npmjs.com/package/@mui/x-data-grid) · [Docs](https://mui.com/x/react-data-grid/quickstart/)

Provides a styled React data grid with sorting, filtering, and editing.

- Downloads / mo: 16.3M
- Stars: 5.9K
- Last release: 9.18.0
- License: MIT
- Capabilities: [From the MUI X Data Grid docs](https://mui.com/x/react-data-grid/quickstart/)

**Strengths**

- **Includes cell and row editing.** Enable editing by column and choose cell or row edit mode.
- **Supports server-side pagination.** Fetch pages on demand rather than loading the entire dataset.

**Watch out for**

- **Community page sizes are capped.** Larger page sizes require the Pro plan or above.
- **Multiple filters require paid plans.** The Community grid applies one filter criterion at a time.

```sh
npm install @mui/x-data-grid @mui/material @emotion/react @emotion/styled
```

**refinedev/refine** (36.0K stars)

[refinedev/refine](https://github.com/refinedev/refine) 

```typescript
export const OrderList = () => {
  const t = useTranslate();
  const { mutate } = useUpdate({ resource: "orders" });

  const { dataGridProps, filters, sorters } = useDataGrid<
    IOrder,
    HttpError,
    IOrderFilterVariables
  >({
    pagination: {
      pageSize: 10,
    },
  });

  const columns = useMemo<GridColDef<IOrder>[]>(
    () => [
      {
        field: "orderNumber",
        headerName: t("orders.fields.order"),
        description: t("orders.fields.order"),
        display: "flex",
        renderCell: function render({ row }) {
          return <Typography>#{row.orderNumber}</Typography>;
        },
      },
      {
        field: "status.text",
        headerName: t("orders.fields.status"),
        width: 124,
        display: "flex",
        renderCell: function render({ row }) {
          return <OrderStatus status={row.status.text} />;
        },
      },
      {
        field: "products",
        headerName: t("orders.fields.products"),
        width: 184,
        sortable: false,
        display: "flex",
        renderCell: function render({ row }) {
          return <OrderTableColumnProducts order={row} />;
        },
      },
      {
        field: "amount",
        headerName: t("orders.fields.amount"),
        headerAlign: "center",
        align: "right",
        width: 120,
        display: "flex",
        renderCell: function render({ row }) {
          return (
            <NumberField
              options={{
                currency: "USD",
                style: "currency",
              }}
              value={row.amount}
            />
          );
        },
      },
      {
        field: "store",
        headerName: t("orders.fields.store"),
        width: 154,
        valueGetter: (_, row) => row.store.title,
        sortable: false,
      },
      {
        field: "user.fullName",
        headerName: t("orders.fields.customer"),
        width: 154,
        valueGetter: (_, row) => row.user.fullName,
        sortable: false,
      },

      {
        field: "createdAt",
        headerName: t("orders.fields.createdAt"),
        width: 200,
        display: "flex",
        renderCell: function render({ row }) {
          return <DateField value={row.createdAt} format="LL / hh:mm a" />;
        },
      },
      {
        field: "actions",
        type: "actions",
        headerName: t("table.actions"),
        sortable: false,
        headerAlign: "right",
        align: "right",
        getActions: ({ id }) => [
          <GridActionsCellItem
            key={1}
            icon={<CheckOutlinedIcon color="success" />}
            label={t("buttons.accept")}
            showInMenu
            onClick={() => {
              mutate({
                id,
                values: {
                  status: {
                    id: 2,
                    text: "Ready",
                  },
                },
              });
            }}
          />,
          <GridActionsCellItem
            key={2}
            icon={<CloseOutlinedIcon color="error" />}
            label={t("buttons.reject")}
            showInMenu
            onClick={() =>
              mutate({
                id,
                values: {
                  status: {
                    id: 5,
                    text: "Cancelled",
                  },
                },
              })
            }
          />,
        ],
      },
    ],
    [t, mutate],
  );

  const { show } = useNavigation();

  const { isLoading, triggerExport } = useExport<IOrder>({
    sorters,
    filters,
    pageSize: 50,
    maxItemCount: 50,
    mapData: (item) => {
      return {
        id: item.id,
        amount: item.amount,
        orderNumber: item.orderNumber,
        status: item.status.text,
        store: item.store.title,
        user: item.user.firstName,
      };
    },
  });

  return (
    <RefineListView
      headerButtons={
        <ExportButton
          variant="outlined"
          onClick={triggerExport}
          loading={isLoading}
          size="medium"
          sx={{ height: "40px" }}
        />
      }
    >
      <DataGrid
        {...dataGridProps}
        columns={columns}
        onRowClick={({ id }) => {
          show("orders", id);
        }}
        pageSizeOptions={[10, 20, 50, 100]}
        sx={{
          "& .MuiDataGrid-row": {
            cursor: "pointer",
          },
        }}
      />
    </RefineListView>
  );
};

```

[examples/finefoods-material-ui/src/pages/orders/list.tsx](https://github.com/refinedev/refine/blob/2352eb5b6539e2f39ad9aef652279ad1dcf2c467/examples/finefoods-material-ui/src/pages/orders/list.tsx#L27-L208) · [More projects using MUI X Data Grid →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20%40mui/x-data-grid&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import type { GridRowsProp, GridColDef } from '@mui/x-data-grid';
import { DataGrid } from '@mui/x-data-grid';

const rows: GridRowsProp = [
  { id: 1, name: 'Data Grid', description: 'the Community version' },
  { id: 2, name: 'Data Grid Pro', description: 'the Pro version' },
  { id: 3, name: 'Data Grid Premium', description: 'the Premium version' },
];

const columns: GridColDef[] = [
  { field: 'name', headerName: 'Product Name', width: 200, rowHeader: true },
  { field: 'description', headerName: 'Description', width: 300 },
];

export default function RenderComponent() {
  return (
    <div style={{ height: 300, width: '100%' }}>
      <DataGrid rows={rows} columns={columns} />
    </div>
  );
}

```

From [quickstart.md](https://mui.com/x/react-data-grid/quickstart/)

### AG Grid

[GitHub](https://github.com/ag-grid/ag-grid) · [npm](https://www.npmjs.com/package/ag-grid-react) · [Docs](https://www.ag-grid.com/react-data-grid/getting-started/)

Provides a React data grid with Community and Enterprise feature modules.

- Downloads / mo: 15.3M
- Stars: 15.7K
- Last release: 36.3.0
- License: MIT
- Capabilities: [From the AG Grid docs](https://www.ag-grid.com/react-data-grid/getting-started/)

**Strengths**

- **Includes core grid features.** Use sorting, filtering, and pagination with the Community edition.
- **Exports CSV through the API.** Export grid data as CSV without requiring the Enterprise context menu.

**Watch out for**

- **Advanced modules require commercial licensing.** Enterprise modules require an AG Grid Enterprise license in production.
- **CSV formulas need export handling.** Transform formula-like cell values before opening exported CSV in spreadsheets.

```sh
npm install ag-grid-react@36.3.0 ag-grid-community@36.3.0
```

**apache/superset** (75.6K stars)

[apache/superset](https://github.com/apache/superset) 

```typescript
({ event, column, data, value, api }: CellKeyDownEvent) => {
      const keyEvent = event as KeyboardEvent | undefined;
      if (
        !document.getSelection?.()?.toString?.() &&
        keyEvent &&
        keyEvent.key === 'c' &&
        (keyEvent.ctrlKey || keyEvent.metaKey)
      ) {
        const columns =
          column.getColId() === PIVOT_COL_ID
            ? api
                .getAllDisplayedColumns()
                .filter((column: Column) => column.getColId() !== PIVOT_COL_ID)
            : [column];
        const record =
          column.getColId() === PIVOT_COL_ID
            ? [
                columns.map((column: Column) => column.getColId()).join('\t'),
                columns
                  .map((column: Column) => data?.[column.getColId()])
                  .join('\t'),
              ].join('\n')
            : String(value);
        copyTextToClipboard(() => Promise.resolve(record));
      }
    }

```

[superset-frontend/src/components/GridTable/index.tsx](https://github.com/apache/superset/blob/b71bd2cd202a784f1cd26b5b24434eab63f9a003/superset-frontend/src/components/GridTable/index.tsx#L62-L87) · [More projects using AG Grid →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20ag-grid-react&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
'use client';
import React from 'react';
import { AllCommunityModule } from 'ag-grid-community';
import { AgGridProvider, AgGridReact } from 'ag-grid-react';

const rowData = [{ make: 'Tesla', model: 'Model Y' }];
const columnDefs = [{ field: 'make' }, { field: 'model' }];

export default function GridExample() {
  return (
    <AgGridProvider modules={[AllCommunityModule]}>
      <div style={{ width: '100%', height: 400 }}>
        <AgGridReact rowData={rowData} columnDefs={columnDefs} />
      </div>
    </AgGridProvider>
  );
}

```

From [getting-started.md](https://www.ag-grid.com/react-data-grid/getting-started/)

### React Virtualized

[GitHub](https://github.com/bvaughn/react-virtualized) · [npm](https://www.npmjs.com/package/react-virtualized) · [Docs](https://react-virtualized-docs.vercel.app/table)

Renders large scrollable lists and tabular data efficiently in React.

- Downloads / mo: 8.7M
- Stars: 27.1K
- Last release: 10.0.1
- License: MIT
- Capabilities: [From the React Virtualized docs](https://react-virtualized-docs.vercel.app/table)

```sh
npm install react-virtualized@10.0.1 react@^19.0.0 react-dom@^19.0.0
```

**Quickstart**

```typescript
import { Column, Table } from 'react-virtualized';
import 'react-virtualized/styles.css';

const rows = [
  { name: 'Avery', role: 'Engineer' },
  { name: 'Robin', role: 'Designer' },
];

export default function App() {
  return (
    <Table width={400} height={240} headerHeight={32} rowHeight={32}
      rowCount={rows.length} rowGetter={({ index }) => rows[index]}>
      <Column dataKey="name" label="Name" width={160} />
      <Column dataKey="role" label="Role" width={240} />
    </Table>
  );
}

```

From [TableBasic.tsx](https://api.github.com/repos/bvaughn/react-virtualized/contents/src/routes/table/examples/TableBasic.tsx?ref=main) · [Find projects using React Virtualized →](https://dashboard.exa.ai/playground/search?q=react-virtualized%20GitHub%20projects)

### @rc-component/table

[GitHub](https://github.com/react-component/table) · [npm](https://www.npmjs.com/package/@rc-component/table) · [Docs](https://raw.githubusercontent.com/react-component/table/master/README.md)

Provides a data table component for React.

- Downloads / mo: 7.7M
- Stars: 1.4K
- Last release: 1.12.0
- License: MIT
- Capabilities: [From the @rc-component/table docs](https://raw.githubusercontent.com/react-component/table/master/README.md)

```sh
npm install @rc-component/table
```

**ant-design/ant-design** (100.3K stars)

[ant-design/ant-design](https://github.com/ant-design/ant-design) 

```typescript
const App: React.FC = () => {
  const { styles } = useStyle();
  return (
    <Flex vertical gap="small">
      <Table<DataType>
        bordered
        className={styles.customTable}
        columns={columns}
        dataSource={dataSource}
        pagination={false}
        summary={(pageData) => {
          let totalBorrow = 0;
          let totalRepayment = 0;
          pageData.forEach(({ borrow, repayment }) => {
            totalBorrow += borrow;
            totalRepayment += repayment;
          });
          return (
            <>
              <Table.Summary.Row>
                <Table.Summary.Cell index={0}>Total</Table.Summary.Cell>
                <Table.Summary.Cell index={1}>
                  <Text type="danger">{totalBorrow}</Text>
                </Table.Summary.Cell>
                <Table.Summary.Cell index={2}>
                  <Text>{totalRepayment}</Text>
                </Table.Summary.Cell>
              </Table.Summary.Row>
              <Table.Summary.Row>
                <Table.Summary.Cell index={0}>Balance</Table.Summary.Cell>
                <Table.Summary.Cell index={1} colSpan={2}>
                  <Text type="danger">{totalBorrow - totalRepayment}</Text>
                </Table.Summary.Cell>
              </Table.Summary.Row>
            </>
          );
        }}
      />
      <Table<FixedDataType>
        className={styles.customTable}
        columns={fixedColumns}
        dataSource={fixedDataSource}
        pagination={false}
        scroll={{ x: 2000, y: 500 }}
        bordered
        summary={() => (
          <Table.Summary fixed>
            <Table.Summary.Row>
              <Table.Summary.Cell index={0}>Summary</Table.Summary.Cell>
              <Table.Summary.Cell index={1}>This is a summary content</Table.Summary.Cell>
            </Table.Summary.Row>
          </Table.Summary>
        )}
      />
    </Flex>
  );
};

```

[components/table/demo/summary.tsx](https://github.com/ant-design/ant-design/blob/ee8db7734e6a4d2387a55324e7e35eecb5535e72/components/table/demo/summary.tsx#L99-L155) · [More projects using @rc-component/table →](https://dashboard.exa.ai/playground/search?q=%40rc-component/table%20GitHub%20projects)

**Quickstart**

```typescript
import Table from '@rc-component/table';
import type { ColumnsType } from '@rc-component/table';

interface User {
  key: string;
  name: string;
  age: number;
  address: string;
}

const columns: ColumnsType<User> = [
  { title: 'Name', dataIndex: 'name', key: 'name', width: 120 },
  { title: 'Age', dataIndex: 'age', key: 'age', width: 80 },
  { title: 'Address', dataIndex: 'address', key: 'address' },
];

const data: User[] = [
  { key: '1', name: 'Jack', age: 28, address: 'Somewhere' },
  { key: '2', name: 'Rose', age: 36, address: 'Somewhere else' },
];

export default () => <Table columns={columns} data={data} />;

```

From [README.md](https://raw.githubusercontent.com/react-component/table/master/README.md)

### react-data-grid

[GitHub](https://github.com/Comcast/react-data-grid) · [npm](https://www.npmjs.com/package/react-data-grid) · [Docs](https://raw.githubusercontent.com/Comcast/react-data-grid/main/README.md)

Provides a customizable React grid with virtualized rows and columns.

- Downloads / mo: 3.1M
- Stars: 7.7K
- Last release: 7.0.0-beta.64
- License: MIT
- Capabilities: [From the react-data-grid docs](https://raw.githubusercontent.com/Comcast/react-data-grid/main/README.md)

**Strengths**

- **Virtualizes rows and columns.** Render visible rows and columns instead of the whole grid.
- **Exposes controlled row updates.** Receive updated rows through onRowsChange and retain application-owned state.

**Watch out for**

- **Row sorting belongs to application.** Apply sorting to the rows when the grid sort state changes.
- **Current release is a prerelease.** The latest package version is marked beta.

```sh
npm install react-data-grid
```

**supabase/supabase** (114.9K stars)

[supabase/supabase](https://github.com/supabase/supabase) 

```typescript
(props: RenderCellProps<SupaRow>) => {
    // [Alaister] formatter is actually a valid React component, so we can use hooks here
    // eslint-disable-next-line react-hooks/rules-of-hooks
    const { isRowSelected, onRowSelectionChange } = useRowSelection()
    return (
      <SelectCellFormatter
        aria-label="Select"
        tabIndex={props.tabIndex}
        value={isRowSelected}
        row={props.row}
        onChange={(checked, isShiftClick) => {
          onRowSelectionChange({ row: props.row, checked, isShiftClick })
        }}
        // Stop propagation to prevent row selection
        onClick={stopPropagation}
      />
    )
  }

```

[apps/studio/components/grid/components/grid/SelectColumn.tsx](https://github.com/supabase/supabase/blob/6fcdcdca9acbac1882c1fa205495d04fa7194435/apps/studio/components/grid/components/grid/SelectColumn.tsx#L44-L61) · [More projects using react-data-grid →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20react-data-grid&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import 'react-data-grid/lib/styles.css';

import { DataGrid, type Column } from 'react-data-grid';

interface Row {
  id: number;
  title: string;
}

const columns: readonly Column<Row>[] = [
  { key: 'id', name: 'ID' },
  { key: 'title', name: 'Title' }
];

const rows: readonly Row[] = [
  { id: 0, title: 'Example' },
  { id: 1, title: 'Demo' }
];

function App() {
  return <DataGrid columns={columns} rows={rows} />;
}

```

From [README.md](https://raw.githubusercontent.com/Comcast/react-data-grid/main/README.md)

### Material React Table

[GitHub](https://github.com/KevinVandy/material-react-table) · [npm](https://www.npmjs.com/package/material-react-table) · [Docs](https://www.material-react-table.com/docs/getting-started/usage)

Implements TanStack React Table on Material UI, written in TypeScript.

- Downloads / mo: 1.8M
- Stars: 1.8K
- Last release: 3.2.1
- License: MIT
- Capabilities: [From the Material React Table docs](https://www.material-react-table.com/docs/getting-started/usage)

```sh
npm install material-react-table@3.2.1 react@^19.0.0 react-dom@^19.0.0 @mui/material@^6.0.0 @mui/icons-material@^6.0.0 @mui/x-date-pickers@^7.15.0 @emotion/react@^11.13.0 @emotion/styled@^11.13.0
```

**chrisbenincasa/tunarr** (2.7K stars)

[chrisbenincasa/tunarr](https://github.com/chrisbenincasa/tunarr) 

```typescript
export const ChannelSubtitlePreferencesTable = () => {
  const { t } = useLingui();
  const { watch, control, setValue } = useChannelFormContext();
  const prefFields = useFieldArray({ control, name: 'subtitlePreferences' });
  const prefs = watch('subtitlePreferences');
  const tableSettings = useStoreBackedTableSettings(TableName);

  const columns = useMemo<MRT_ColumnDef<SubtitlePreference>[]>(() => {
    return [
      {
        header: t`Priority`,
        accessorKey: 'priority',
        Cell({ cell }) {
          return cell.getValue<number>() + 1;
        },
        enableEditing: false,
      },
      {
        header: t`Language`,
        id: 'langugeCode',
        accessorFn(originalRow) {
          return languageBy3LetterCode[originalRow.langugeCode];
        },
        enableEditing: false,
      },
      {
        header: t`Allow External`,
        accessorKey: 'allowExternal',
        enableEditing: false,
        Cell({ row, cell }) {
          const name =
            `subtitlePreferences.${row.index}.allowExternal` as const;
          const value = cell.getValue<boolean>();
          return (
            <Checkbox
              sx={{ p: 0 }}
              checked={value}
              onChange={(_, checked) =>
                setValue(name, checked, { shouldDirty: true })
              }
            />
          );
        },
      },
      {
        header: t`Allow Image Based`,
        accessorKey: 'allowImageBased',
        enableEditing: false,
        Cell({ row, cell }) {
          const name =
            `subtitlePreferences.${row.index}.allowImageBased` as const;
          const value = cell.getValue<boolean>();
          return (
            <Checkbox
              sx={{ p: 0 }}
              onChange={(_, checked) =>
                setValue(name, checked, { shouldDirty: true })
              }
              checked={value}
            />
          );
        },
      },
      {
        header: t`Filter Type`,
        Header: () => {
          return (
            <>
              <Trans>Filter</Trans>&nbsp;
              <Tooltip
                title={
                  <>
                    <Trans>
                      Filter which subtitle tracks are considered
                      <br />
                      <strong>Any: </strong> All subtitle tracks are considered{' '}
                      <br />
                      <strong>Forced: </strong>Only consider{' '}
                      <Link
                        href="https://partnerhelp.netflixstudios.com/hc/en-us/articles/224198488-What-is-a-Forced-Narrative-subtitle"
                        target="_blank"
                      >
                        "forced"
                      </Link>
                      subtitle tracks <br />
                      <strong>Default: </strong>Only consider default subtitle
                      tracks <br />
                      <strong>None: </strong> Do not select any subtitles
                    </Trans>
                  </>
                }
                placement="top"
              >
                <span>[?]</span>
              </Tooltip>
            </>
          );
        },
        Cell: ({ cell }) => capitalize(cell.getValue<string>()),
        accessorKey: 'filter',
        editVariant: 'select',
        editSelectOptions: SubtitleFilterSchema.options.map((opt) => ({
          label: capitalize(opt),
          value: opt,
        })),
        muiEditTextFieldProps: ({ row }) => ({
          select: true,
          onChange: (ev) =>
            setValue(
              `subtitlePreferences.${row.index}.filter`,
              ev.target.value as SubtitleFilter,
              { shouldDirty: true },
            ),
        }),
      },
    ];
  }, [setValue]);

  const renderLanguageAutoComplete = () => {
    return (
      <LanguageAutocomplete
        values={[]}
        showValues={false}
        sx={{ width: '50%' }}
        onSelect={(opt) =>
          prefFields.append({
            langugeCode: opt.iso6392,
            priority: prefFields.fields.length,
            allowExternal: true,
            allowImageBased: true,
            filter: 'any',
          })
        }
        onRemove={() => {}}
        textFieldProps={{
          label: t`Add Language Preference`,
        }}
      />
    );
  };

  const table = useMaterialReactTable({
    data: (prefs ?? []).map((pref, idx) => ({ ...pref, priority: idx })),
    columns,
    enableRowDragging: false,
    enableSorting: false,
    autoResetPageIndex: false,
    enableRowOrdering: true,
    enableRowActions: true,
    enableEditing: true,
    editDisplayMode: 'cell',
    positionActionsColumn: 'last',
    displayColumnDefOptions: {
      'mrt-row-actions': {
        // size: mediumViewport ? 60 : 100,
        grow: false,
        Header: '',
        visibleInShowHideMenu: false,
      },
    },
    renderRowActions: ({ row }) => {
      return (
        <Stack direction="row">
          <IconButton onClick={() => prefFields.remove(row.index)} size="small">
            <Delete />
          </IconButton>
        </Stack>
      );
    },
    renderTopToolbarCustomActions: () => {
      return (
        <Controller
          control={control}
          name="subtitlePreferences"
          render={renderLanguageAutoComplete}
        />
      );
    },
    muiRowDragHandleProps: ({ table }) => ({
      onDragEnd: () => {
        const { draggingRow, hoveredRow } = table.getState();
        if (hoveredRow && draggingRow && !isUndefined(hoveredRow.index)) {
          prefFields.swap(hoveredRow.index, draggingRow.index);
        }
      },
    }),
    ...tableSettings,
  });

  return <MaterialReactTable table={table} />;
};

```

[web/src/components/channel_config/ChannelSubtitlePreferencesTable.tsx](https://github.com/chrisbenincasa/tunarr/blob/747d3a2c860dcf87d5dfbb738f9bc789dbba72b9/web/src/components/channel_config/ChannelSubtitlePreferencesTable.tsx#L21-L211) · [More projects using Material React Table →](https://dashboard.exa.ai/playground/search?q=material-react-table%20GitHub%20projects)

**Quickstart**

```typescript
import {
  MaterialReactTable,
  useMaterialReactTable,
  type MRT_ColumnDef,
} from 'material-react-table';

type Person = { name: string; age: number };
const data: Person[] = [{ name: 'Avery', age: 30 }, { name: 'Robin', age: 25 }];
const columns: MRT_ColumnDef<Person>[] = [
  { accessorKey: 'name', header: 'Name' },
  { accessorKey: 'age', header: 'Age' },
];

export default function App() {
  const table = useMaterialReactTable({ columns, data });
  return <MaterialReactTable table={table} />;
}

```

From [usage.mdx](https://api.github.com/repos/KevinVandy/material-react-table/contents/apps/material-react-table-docs/pages/docs/getting-started/usage.mdx?ref=v3)

### React Data Table Component

[GitHub](https://github.com/jbetancur/react-data-table-component) · [npm](https://www.npmjs.com/package/react-data-table-component) · [Docs](https://reactdatatable.com/docs/getting-started)

Provides a feature-rich React data table.

- Downloads / mo: 1.2M
- Stars: 2.2K
- Last release: 8.13.0
- License: Apache-2.0
- Capabilities: [From the React Data Table Component docs](https://reactdatatable.com/docs/getting-started)

```sh
npm install react-data-table-component
```

**BCG-X-Official/agentkit** (1.9K stars)

[BCG-X-Official/agentkit](https://github.com/BCG-X-Official/agentkit) 

```typescript
const DataTableView = (props: Props) => {
  const { rawResults } = props
  const columns = Object.keys(head(rawResults) || {}).map((key) => {
    return {
      name: key,
      sortable: true,
      selector: (row: any) => row[key],
      wrap: true,
      maxWidth: getWidth(head(rawResults) || {}, key),
      padding: "0.5em",
      className: "dark:border-zinc-700",
    }
  })

  return rawResults.length === 0 ? (
    <div className="flex w-full flex-col items-center justify-center py-6 pt-10">
      <Icon.BsBoxArrowDown className="h-auto w-7 opacity-70" />
      <span className="mt-2 font-mono text-sm text-gray-500">No data returned</span>
    </div>
  ) : (
    <DataTable
      className="w-full !rounded-lg border dark:border-zinc-700"
      columns={columns}
      data={rawResults}
      fixedHeader
      pagination
      paginationPerPage={5}
      paginationRowsPerPageOptions={[5, 10, 25, 50, 100]}
      responsive
    />
  )
}
```

[frontend/src/components/CodeView/SideDrawer/DataTableView.tsx](https://github.com/BCG-X-Official/agentkit/blob/80f4a0bb192b0a49269113d57cfdde87903316a0/frontend/src/components/CodeView/SideDrawer/DataTableView.tsx#L17-L48) · [More projects using React Data Table Component →](https://dashboard.exa.ai/playground/search?q=react-data-table-component%20GitHub%20projects)

**Quickstart**

```typescript
import DataTable from 'react-data-table-component';

const columns = [
  { name: 'Name', selector: row => row.name, sortable: true },
  { name: 'Role', selector: row => row.role },
  { name: 'Salary', selector: row => row.salary, right: true },
];

const data = [
  { id: 1, name: 'Aria Chen', role: 'Engineering Lead', salary: 155000 },
  { id: 2, name: 'Marcus Webb', role: 'Product Manager', salary: 132000 },
];

export default function App() {
  return <DataTable columns={columns} data={data} pagination />;
}

```

From [README.md](https://reactdatatable.com/docs/getting-started)

## FAQ

### Which React table library should I use?

[TanStack Table](#tanstack-table) suits tables with custom markup over a headless state engine. [MUI X Data Grid](#mui-x-data-grid) suits styled Material Design grids with built-in editing. [AG Grid](#ag-grid) suits feature-rich grids with Community and Enterprise modules.

### What is TanStack Table?

[TanStack Table](#tanstack-table) manages table state and row processing while the application builds the interface. Sorting, filtering, and pagination are registered as individual features.

### What is React Data Grid?

[react-data-grid](#react-data-grid) provides a customizable React grid with virtualized rows and columns. The application sorts its rows when the grid sort state changes.

### What does the MUI X Data Grid Community plan include?

Cell and row editing and server-side pagination. Larger page sizes and multiple filter criteria require paid plans of [MUI X Data Grid](#mui-x-data-grid).

### AG Grid vs TanStack Table: which should I use?

[TanStack Table](#tanstack-table) suits teams that render their own table markup. [AG Grid](#ag-grid) suits teams that want a ready-made grid, with Enterprise modules under a commercial license.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "React table libraries TanStack MUI X React Data Grid AG Grid sorting filtering pagination editable cells code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
