column-definitions

Official

Type-safe columns for TanStack Table

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of defining TanStack Table v9 column definitions correctly and type-safely so your table features (sorting, filtering, grouping, aggregation, selection) behave as expected.

Core Features & Use Cases

  • Typed column definitions with createColumnHelper: Define columns using createColumnHelper<typeof _features, TData>(), covering columnHelper.accessor, columnHelper.display, columnHelper.group, and columnHelper.columns.
  • Correct column types and accessor patterns: Use ColumnDef variants (AccessorKeyColumnDef, AccessorFnColumnDef, DisplayColumnDef, GroupColumnDef) and understand when to prefer accessorKey vs accessorFn.
  • Stable identity and renderers: Apply required id rules (especially for accessorFn) and implement stable row identity via getRowId, while defining header, cell, footer, and aggregatedCell renderers (including flexRender-compatible forms).

Quick Start

Tell your AI: “Generate a TanStack Table v9 column helper setup for my Person row type using accessorKey for simple fields and accessorFn for derived values, ensuring required id values, typed renderers, and a getRowId implementation for stable row identity.”

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: column-definitions
Download link: https://github.com/TanStack/table/archive/main.zip#column-definitions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.