API Reference

@tanstack/react-table

Headless, type-safe table primitive for React with sorting, filtering, pagination, and virtualization built on a framework-agnostic core.

Official Documentation ↗
CompatibilityThis documentation covers version v8.20. Check the official docs for the latest API surface.

Installation

npmnpm install @tanstack/react-table

Methods

@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.

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.