ask-tanstack-table

Implements TanStack Table v8 data tables with sorting, filtering, pagination, and virtualization.

1|Updated Aug 17, 2026
One-click install
npx skills add https://github.com/NalinDalal/skillset --skill ask-tanstack-table-nalindalal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ask-tanstack-table
Source: https://github.com/NalinDalal/skillset/tree/main/skills/ui/ask-tanstack-table
Command: npx skills add https://github.com/NalinDalal/skillset --skill ask-tanstack-table-nalindalal

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building feature-rich data tables in React requires wiring together sorting, filtering, pagination, column resizing, and virtualization, which is repetitive and error-prone without a proven reference implementation. ## Core Features & Use Cases - Type-Safe Column Definitions: Uses createColumnHelper to define typed columns with custom cells, sizes, and filter functions. - Complete Table Component: Provides a full DataTable with global search, per-column filters, column visibility dropdown, sorting indicators, and pagination controls. - Server-Side & Virtualization Support: Covers manual pagination/sorting/filtering against an API, row expansion, row selection, CSV export, and virtualized rendering via @tanstack/react-virtual. - Use Case: Build an admin dashboard projects table where users sort by status, filter by owner, paginate through thousands of server-side rows, and export the filtered result to CSV. ## Quick Start Ask the agent to build a data table with sorting, filtering, and pagination using TanStack Table for your React project.

Frequently Asked Questions about ask-tanstack-table

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

FAQPage Schema
How do I build a data table with sorting and filtering in React?▼

Use TanStack Table v8 with useReactTable, adding getSortedRowModel and getFilteredRowModel to the table options. Define columns with createColumnHelper for type safety, then wire sorting and columnFilters state to the table instance.

How to add server-side pagination with TanStack Table?▼

Set manualPagination, manualSorting, and manualFiltering to true and pass the total rowCount from your API. Fetch data in a callback keyed on pagination, sorting, and filter state, sending them as query parameters to your endpoint.

Does TanStack Table support virtualization for large datasets?▼

Yes, combine it with @tanstack/react-virtual by creating a virtualizer over the table's row model and rendering only visible rows with absolute positioning. Set estimateSize to your row height and an overscan value for smooth scrolling.

How do I export TanStack Table data to CSV?▼

Map table.getFilteredRowModel().rows to extract cell values per column, join them into CSV lines, and download via a Blob URL. This exports the currently filtered rows, respecting active search and column filters.

When should I not use TanStack Table?▼

Avoid it for simple static lists where a plain HTML table suffices, since the headless API adds setup overhead. For non-tabular virtualized feeds or chat lists, a dedicated virtual list library like Virtuoso fits better.