Skip to content
Skillpedia
Websites & UI (frontend)29k · #9837

table-features

What it does

This skill explains how to turn table features on and fix them when they do not behave as expected. It is for developers who want sorting, filtering or pagination in a table built with the library.

When to use it

  • ✓When you need to add sorting, filtering, pagination or selection to a TanStack table.
  • ✓When a feature such as sorting seems to do nothing and you need to check its registration.
  • ✓When you need to know which feature a row model or sort function requires.

Skill link

https://github.com/TanStack/table/blob/main/packages/table-core/skills/table-features/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/TanStack/table/blob/main/packages/table-core/skills/table-features/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I added sorting to my TanStack table, but clicking the headers does nothing. How do I fix it?”

5 new skills a week. 1 minute to read.

How it works

It shows how to register each feature and its row model in the feature list, since a table only gets the behavior it registers, and explains the prerequisites for each one.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Feature architecture

Read core first for the headless model and stable inputs.

Register the behavior the table uses

<!-- skill-snippet:check -->
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 involves Read
Manual modes, server data, mixed row-processing stages, or dataset scope Client/server ownership
Totals, multiple aggregations, grouped aggregate values, or custom aggregate definitions Aggregation
Facet option counts, numeric ranges, or incomplete server facets Column faceting
Per-column filters, filter functions, metadata, or nested-row filtering Column filtering
Group rows, placeholders, or grouping with expansion/pagination Grouping
Drag ordering or leaf-column order differing from state Column ordering
Sticky column regions, logical start/end, or pinning gaps Column pinning
Drag resize handles, gesture events, or resize performance Column resizing
Numeric widths, min/max limits, or model/CSS size mismatch Column sizing
Hidden columns, visibility-aware rendering, or hiding controls Column visibility
A search across columns or global-filter eligibility Global filtering
Hierarchical subrows, detail panels, or expansion/page interaction Expanding
Page slicing, counts, navigation, or page-index resets
FAQ

Why does a feature not work even after I wrote its code?

The skill says a feature must be registered in the table's feature list, and some features need another feature registered first.

Where do sort and filter functions go?

The skill says they are feature slots in the feature list, not plain table options.

Do I need to read every feature reference?

No. The skill recommends reading only the references that match the task.

Details

Original description by the author

'Add or debug Table v9 features: registration, row-model slots, prerequisites, sorting, filtering, pagination, selection, spanning, and column layout. Read only task-relevant feature references.'

repo: TanStack/table

Popularity

GitHub stars
29k
Ranking position
#9837
License
MIT
Updated
10/21/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills