What problem does it solve?
Building data grids with merged cells is error-prone: spans break after sorting or pagination, ragged rows appear when spans are precomputed from source data, and rendering rowSpan={0} accidentally merges a cell down the entire tbody. This Skill implements correct, stateless cell merging with TanStack Table's cellSpanningFeature.
Core Features & Use Cases
- Value-based row spanning: Opt columns into merging adjacent equal values via
spanRows: true or a custom anchored predicate (e.g., merge rows in the same month).
- Per-row column spanning: Declare
spanColumns per row for full-width summary rows, clamped to pinned regions so spans never cross pinning boundaries.
- Covered-cell rendering convention: Skip cells where
getRowSpan() or getColSpan() returns 0, and rely on spans that automatically follow sorting, filtering, pagination, and row pinning.
- Use Case: Build a sales report grid where repeated region values merge vertically, summary rows span all columns, and merges stay correct as the user sorts and pages through data.
Quick Start
Use the cell-spanning skill to add rowSpan merging on the region column and a full-width summary row to my TanStack Table grid.