What problem does it solve?
Developers using TanStack Table often misapply column sizing by expecting numeric state to style the DOM automatically, or by passing CSS values like percentages into numeric APIs, causing layout mismatches with totals and pinned offsets.
Core Features & Use Cases
- Numeric Sizing APIs: Use size, minSize, maxSize, getSize, getStart, getAfter, and getTotalSize to manage column dimensions as numeric state.
- Renderer Translation Guidance: Apply model sizes consistently to headers, cells, and pinned offsets in table, grid, or flex CSS layouts.
- Common Mistake Prevention: Avoid passing CSS strings like '25%' into numeric APIs and prevent content from overriding offsets with min-width rules.
- Use Case: When building a resizable data grid with pinned columns, use getSize() for cell widths and getTotalSize() for the table element so pinning offsets stay aligned with rendered geometry.
Quick Start
Ask the AI to set up TanStack Table column sizing with columnSizingFeature and apply getSize and getTotalSize to your table cells and container.