Skills2026年4月27日·1 分钟阅读

TanStack Table — Headless UI for Building Powerful Data Tables

TanStack Table is a framework-agnostic headless library for building fast, feature-rich data tables and datagrids with full control over markup and styling.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
TanStack Table Datagrid
直接安装命令
npx -y tokrepo@latest install 34b28d43-41f2-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

TanStack Table (formerly React Table) is a headless table library that provides the logic for sorting, filtering, pagination, grouping, and column management without dictating any markup or styles. It supports React, Vue, Solid, Svelte, and vanilla JS.

What TanStack Table Does

  • Manages column definitions, row models, and cell rendering logic
  • Provides built-in sorting, filtering, pagination, and grouping pipelines
  • Supports column pinning, resizing, reordering, and visibility toggles
  • Handles row selection and expansion with nested sub-rows
  • Offers virtualization-ready APIs for tables with thousands of rows

Architecture Overview

The library is built around a core that processes data through composable row model pipelines. Each feature (sorting, filtering, grouping) is a separate pipeline stage that transforms the row array. The headless design means the core returns state objects and handler functions while the consumer renders them into whatever DOM or component structure they choose.

Self-Hosting & Configuration

  • Install the adapter for your framework: @tanstack/react-table, @tanstack/vue-table, etc.
  • Define columns with accessors, headers, and cell renderers
  • Compose row model functions (getSortedRowModel, getFilteredRowModel) to enable features
  • Use manual mode for server-side sorting, filtering, and pagination
  • Pair with @tanstack/react-virtual for virtualized row rendering

Key Features

  • Fully headless with zero styling opinions or CSS dependencies
  • Framework adapters for React, Vue, Solid, Svelte, and vanilla TS
  • Column grouping, multi-sort, faceted filtering, and global search
  • Row pinning, column pinning, and column resizing with drag handles
  • TypeScript-first with strongly typed column definitions and row data

Comparison with Similar Tools

  • AG Grid — batteries-included with built-in themes, but larger bundle and commercial license for advanced features
  • MUI DataGrid — Material Design styling included, React-only
  • Handsontable — spreadsheet-style editing, commercial license required
  • React Data Grid — rich features but tightly coupled to its own renderer
  • Tabulator — framework-agnostic with built-in UI, heavier footprint

FAQ

Q: Is TanStack Table free? A: Yes. It is MIT-licensed and free for all uses.

Q: How do I handle large datasets? A: Use server-side mode for data fetching and pair with @tanstack/virtual for row virtualization.

Q: Can I use it without React? A: Yes. TanStack Table has adapters for Vue, Solid, Svelte, and a vanilla JS core.

Q: Does it include built-in styling? A: No. It is headless by design. You provide all markup and CSS.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产