tanstack-table

Builds headless data tables with sorting, filtering, and pagination in React.

3|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/langgenius/due-date-hq-jwl --skill tanstack-table-langgenius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-table
Source: https://github.com/langgenius/due-date-hq-jwl/tree/main/.agents/skills/tanstack-table
Command: npx skills add https://github.com/langgenius/due-date-hq-jwl --skill tanstack-table-langgenius

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/react-table, @tanstack/match-sorter-utils, @tanstack/react-virtual.

What problem does it solve? Building feature-rich data tables in React requires reimplementing sorting, filtering, pagination, grouping, and selection logic from scratch, which is error-prone and hard to maintain. ## Core Features & Use Cases - Headless Table Logic: Provides sorting, filtering, pagination, grouping, expanding, column pinning, resizing, visibility, and row selection without imposing any markup or styles. - Server-Side Operations: Supports manual sorting, filtering, and pagination modes for large datasets fetched from APIs. - TypeScript-Safe Columns: Uses createColumnHelper and module augmentation for typed column definitions, custom filter functions, and table metadata. - Use Case: A developer building an admin dashboard needs a paginated, sortable, filterable user list with row selection and column resizing; this Skill provides the complete implementation patterns. ## Quick Start Ask the AI to create a React table using TanStack Table with sorting, pagination, and a global search filter for your dataset.

Frequently Asked Questions about tanstack-table

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a sortable table in React with TanStack Table?

Create a table with useReactTable by passing memoized data and columns, then add getCoreRowModel and getSortedRowModel with controlled sorting state. Attach header.column.getToggleSortingHandler() to header click events to toggle ascending and descending order.

How to add pagination to a TanStack React table?

Add getPaginationRowModel to the table options and control pagination state with pageIndex and pageSize. Use table.nextPage(), table.previousPage(), and table.setPageSize() for navigation, or set manualPagination with pageCount for server-side paging.

Does TanStack Table support server-side sorting and filtering?

Yes, TanStack Table supports server-side operations through manualSorting, manualFiltering, and manualPagination options. Omit the client-side row models and fetch data in an effect whenever sorting, filter, or pagination state changes.

Why does my TanStack table re-render infinitely?

Infinite re-renders happen when data or columns are new references on every render. Wrap both in useMemo so the table instance receives stable references, and always include getCoreRowModel as the base row model.

Can TanStack Table work with frameworks other than React?

Yes, TanStack Table is a headless library with adapters for Vue, Solid, Svelte, Qwik, Angular, and Lit in addition to React. The core column and row model logic is shared across all framework adapters.