mcpField
T
table-features

table-features

github.com/tanstackDevelopment28.5k66 installsUpdated 1w ago
Repository

About table-features

A coding skill for configuring TanStack Table v9 features. It guides developers through feature registration, dependencies, and which references to consult for table behavior.

Key features

  1. 01Register optional table features
  2. 02Check feature prerequisites
  3. 03Choose references by task
  4. 04Inspect installed feature APIs

Use cases

  1. 01Adding sorting or filtering
  2. 02Choosing row-processing stages
  3. 03Finding why an API is unavailable

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/tanstack/table --skill table-features

After installing, type/table-featuresin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
aggregation.md
cell-selection.md
cell-spanning.md
client-vs-server.md
column-faceting.md
column-filtering.md
column-ordering.md
column-pinning.md
column-resizing.md
column-sizing.md
column-visibility.md
expanding.md
global-filtering.md
grouping.md
pagination.md
row-pinning.md
row-selection.md
sorting.md

Details

From the project README

Feature architecture

Read core first for the headless model and stable inputs.

Register the behavior the table uses

import {
  createSortedRowModel,
  rowSortingFeature,
  sortFn_alphanumeric,
  tableFeatures,
} from '@tanstack/table-core'

export const features = tableFeatures({
  rowSortingFeature,
  sortedRowModel: createSortedRowModel(),
  sortFns: { alphanumeric: sortFn_alphanumeric },
})

Pass the stable features object to the installed adapter constructor. The concrete registry determines optional APIs, options, state slices, and their types. The core row model is automatic; a custom core model uses coreRowModel.

Registration rules

  • Register each prerequisite feature before its dependent slot in the same tableFeatures call. A processing factory alone cannot install that feature's APIs or state.
  • Row-model factories use create*RowModel() feature slots. Their names and prerequisites are in the feature reference. They take no function-registry arguments.
  • filterFns, sortFns, and aggregationFns are feature slots, not table options. They require columnFilteringFeature, rowSortingFeature, and rowAggregationFeature, respectively.
  • Import individual built-ins such as sortFn_alphanumeric and register their conventional keys. Those keys become typed string names; 'auto' can resolve only registered functions. Pass a function directly when a column needs no named registry entry. Full registry exports bundle every built-in.
  • columnResizingFeature requires columnSizingFeature; globalFilteringFeature requires columnFilteringFeature. Check installed FeatureSlotPrereqs for other dependencies.
  • Use explicit features for normal construction. stockFeatures is a deliberate all-features convenience or temporary migration aid, with the corresponding bundle cost.

A missing API can mean missing registration. Check the concrete feature object before casting, recreating an API, or assuming v9 removed it.

Select references by the requested change

Read only references needed for the requested behavior and its dependencies, including features being added. An unrelated feature already registered on the table does not make its reference necessary.

Task involvesRead
Manual modes, server data, mixed row-processing stages, or dataset scopeClient/server ownership
Totals, multiple aggregations, grouped aggregate values, or custom aggregate definitionsAggregation
Facet option counts, numeric ranges, or incomplete server facetsColumn faceting
Per-column filters, filter functions, metadata, or nested-row filteringColumn filtering
Group rows, placeholders, or grouping with expansion/paginationGrouping
Drag ordering or leaf-column order differing from stateColumn ordering
Sticky column regions, logical start/end, or pinning gapsColumn pinning
Drag resize handles, gesture events, or resize performanceColumn resizing
Numeric widths, min/max limits, or model/CSS size mismatchColumn sizing
Hidden columns, visibility-aware rendering, or hiding controlsColumn visibility
A search across columns or global-filter eligibilityGlobal filtering
Hierarchical subrows, detail panels, or expansion/page interactionExpanding
Page slicing, counts, navigation, or page-index resetsPagination
Top/bottom pinned rows or their visibility outside the current pageRow pinning
Rectangular cell selection, include/exclude ranges, or drag outlinesCell selection
Merged body cells, covered cells, or spans changing with row orderCell spanning
Row checkboxes, select-all, Shift ranges, or IDs across pagesRow selection
Sorting, comparators, undefined values, or sort interaction cyclesSorting

For controlled state or reset behavior, read shared state and load the installed adapter's state skill for reactive wiring.

Installed API discovery

Inspect node_modules/@tanstack/table-core/dist/types/TableFeatures.d.ts for slots and FeatureSlotPrereqs. Follow dist/features/<feature>/ for exact state, option, and instance declarations. Each reference names its feature directory.

Comments

Markdown supported