TanStack Table is a headless library for building datagrids in TypeScript and JavaScript. You get sorting, filtering, grouping, and pagination logic while keeping full control of markup and styles.
Overview
TanStack Table is a headless engine for building tables and data grids in TypeScript and JavaScript applications. It supplies state, row processing, and typed APIs without prescribing markup, elements, or styles, so you can render tables with any component library or custom design.
The library supports sorting, pagination, filtering, faceting, grouping, aggregation, row expansion, row and cell selection, cell spanning, row and column pinning, column ordering, visibility, and resizing. Features are tree-shakable, and you can use built-in client-side row models or supply rows processed on the server.
A framework-agnostic core ships with adapters for React, Vue, Solid, Svelte, Angular, Ember, Lit, Alpine, Preact, and Octane. Fine-grained reactive state is backed by TanStack Store, with options to subscribe to slices or integrate external state. Official examples cover integration with common UI libraries such as Material UI, Mantine, Chakra UI, and shadcn-style setups.
You can extend the table with custom typed features, package shared conventions into reusable table hooks, and inspect live instances with Devtools in supported framework integrations. Adapter packages for version 9 and above can also ship TanStack Intent skills for AI coding agents.
Key features
- Headless logic with full control of markup and styles
- Sorting, filtering, grouping, and aggregation
- Pagination, expansion, and row or cell selection
- Column pinning, resizing, ordering, and visibility
- Client-side and server-side row models
- Framework adapters for React, Vue, Svelte, and others
- Tree-shakable features and virtualization support
- Custom features, reusable hooks, and Devtools
Use cases
- Custom-styled data grids in web apps
- Tables integrated with existing design systems
- Large datasets with virtualization
- Server-driven pagination and filtering
- Shared table patterns across a product