row-selection
Installation
SKILL.md
This skill builds on core and table-features. Selection is independent ID state; selected row models can only materialize loaded rows.
Setup
import {
rowSelectionFeature,
tableFeatures,
type Row,
} from '@tanstack/table-core'
type Person = { id: string; name: string }
export const features = tableFeatures({ rowSelectionFeature })
export const options = {
getRowId: (row: Person) => row.id,
enableSubRowSelection: false,
}