@tanstack/react-table
Headless, type-safe table primitive for React with sorting, filtering, pagination, and virtualization built on a framework-agnostic core.
Official Documentation ↗v8.20. Check the official docs for the latest API surface.Installation
npm install @tanstack/react-tableMethods
No methods match this filter.
@tanstack/react-table is headless, type-safe table primitive for react with sorting, filtering, pagination, and virtualization built on a framework-agnostic core. This page documents the core methods, installation, and common usage patterns for the current stable release.
Installation
Install @tanstack/react-table with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.
Core methods
The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v8.20 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.
Frequently asked questions
The faq section in the frontmatter answers the most common questions about @tanstack/react-table, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.
API reference evidence
Fetched from official sources on 2026-11-08T19:58:23+08:00 via WebFetch https://cdn.jsdelivr.net/npm/@tanstack/[email protected]/build/lib/index.d.ts;WebFetch https://cdn.jsdelivr.net/npm/@tanstack/[email protected]/build/lib/features/RowSorting.d.ts;WebFetch https://cdn.jsdelivr.net/npm/@tanstack/[email protected]/build/lib/features/RowPagination.d.ts.
useReactTable→ signature from https://cdn.jsdelivr.net/npm/@tanstack/[email protected]/build/lib/index.d.ts; official text: “export declare function useReactTable(options: TableOptions ): import(”@tanstack/table-core”).Table ;” getSortedRowModel→ signature from https://cdn.jsdelivr.net/npm/@tanstack/[email protected]/build/lib/features/RowSorting.d.ts; official text: “This function is used to retrieve the sorted row model. If using server-side sorting, this function is not required. To use client-side sorting, pass the exportedgetSortedRowModel()from your adapter to your table or “getPaginationRowModel→ signature from https://cdn.jsdelivr.net/npm/@tanstack/[email protected]/build/lib/features/RowPagination.d.ts; official text: “Returns the row model after pagination has taken place, but no further. getPaginationRowModel?: (table: Table) => () => RowModel ;”
FAQ
- Is @tanstack/react-table headless?
- Yes. It provides state and logic without rendering markup, so you control the HTML and styling entirely.
- Does it support server-side pagination?
- Yes. Set manualPagination true and provide pageCount; the table manages state while you fetch data.
- Can I use it without React?
- The @tanstack/table-core package is framework-agnostic; react-table is the React adapter.
Report a problem with this API docOpens a pre-filled issue on GitHub.