column-layout

Official

Control column layout state with precision

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the challenge of getting consistent, predictable column rendering behavior when users need to toggle visibility, reorder columns, pin them, resize them, and handle resize interactions correctly in TanStack Table v9.

Core Features & Use Cases

  • Column visibility: manage which columns are shown and ensure your rendering uses the visible APIs (so toggles actually affect the UI).
  • Column ordering: reorder only the center (unpinned) column region using columnOrder and the correct index APIs.
  • Column pinning, sizing, and resizing: pin columns left/right, commit and read pixel-based sizes, and implement resize handlers and performant resize patterns.

Quick Start

Create a table with tableFeatures({ columnVisibilityFeature, columnOrderingFeature, columnPinningFeature, columnSizingFeature, columnResizingFeature }), initialize the related state slices, and render body cells from row.getVisibleCells() to reflect visibility correctly.

Dependency Matrix

Required Modules

None required

Components

references

💻 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-layout
Download link: https://github.com/TanStack/table/archive/main.zip#column-layout

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.