Agents & OrchestrationSûr100100/100
Column Sizing (TanStack)
Use columnSizingFeature numeric size, minSize, maxSize, getSize, getStart, getAfter, and total-size APIs in table, grid, or flex CSS. Load for auto or percentage misconceptions and sizing/pinning layout mismatch.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs column-sizing__tanstack-table__packages-table-core-skills-208b9fbb4e04TanStack
TanStack/table
Contenu à copier
---
name: column-sizing
description: >
Use columnSizingFeature numeric size, minSize, maxSize, getSize, getStart, getAfter, and total-size APIs in table, grid, or flex CSS. Load for auto or percentage misconceptions and sizing/pinning layout mismatch.
metadata:
origin: TanStack
{ type: sub-skill, library: '@tanstack/table-core', library_version: '9.2.4' }
requires: ['core', 'table-features']
sources:
- 'TanStack/table:docs/framework/react/guide/column-sizing.md'
- 'TanStack/table:packages/table-core/src/features/column-sizing'
- 'TanStack/table:examples/react/column-sizing'
---
This skill builds on `core` and `table-features`. Sizing is numeric state; translating it to layout is a renderer decision.
## Setup
```ts
import { columnSizingFeature, tableFeatures } from '@tanstack/table-core'
export const features = tableFeatures({ columnSizingFeature })
export const defaultColumn = { size: 180, minSize: 80, maxSize: 480 }
```
## Core Patterns
```ts
cell.style.width = `${cell.column.getSize()}px`
tableElement.style.width = `${table.getTotalSize()}px`
```
Apply the same model sizes consistently to headers, cells, and pinned offsets.
## Common Mistakes
### [HIGH] Expecting state to style DOM
Wrong: `const options = { defaultColumn: { size: 180 } }`
Correct: `cell.style.width = `${cell.column.getSize()}px``
Numeric state does not apply CSS to headless markup.
Source: `docs/framework/react/guide/column-sizing.md#column-size-apis`
### [HIGH] Passing CSS sizes into numeric APIs
Wrong: `const column = { size: '25%' }`
Correct: `const column = { size: 240 }`
Table sizing state is numeric; percentages and auto layout belong in renderer CSS.
Source: `packages/table-core/src/features/column-sizing/columnSizingFeature.types.ts`
### [HIGH] Letting content override offsets
Wrong: `cell.style.minWidth = 'max-content'`
Correct: `cell.style.width = `${column.getSize()}px`; cell.style.overflow = 'hidden'`
If rendered width differs from the model, totals and pinning offsets no longer match geometry.
Source: `examples/react/column-sizing/src/main.tsx`
## API Discovery
Inspect `node_modules/@tanstack/table-core/dist/features/column-sizing/` for defaults and region-aware offset signatures.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Column Sizing (TanStack)
Applique les pratiques du skill column-sizing__tanstack-table__packages-table-core-skills-208b9fbb4e04.
Comment utiliser Column Sizing (TanStack)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Column Sizing (TanStack)
Dis simplement à ton agent quelque chose comme :
Applique le skill column-sizing__tanstack-table__packages-table-core-skills-208b9fbb4e04 à cette tâche
Utilise column-sizing__tanstack-table__packages-table-core-skills-208b9fbb4e04 pour améliorer cette implémentation
Passe en revue ce sujet avec column-sizing__tanstack-table__packages-table-core-skills-208b9fbb4e04
Skills liés à Column Sizing (TanStack)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.