solid/getting-started

Set up TanStack Table v9 in Solid with typed features and row models.

28.3k|3.6k|Updated Oct 20, 2016
One-click install
npx skills add https://github.com/TanStack/table --skill solid-getting-started
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid/getting-started
Source: https://github.com/TanStack/table/tree/main/packages/solid-table/skills/solid/getting-started
Command: npx skills add https://github.com/TanStack/table --skill solid-getting-started

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the confusion of how to correctly set up a working v9 TanStack Table in Solid, including the required v9 registration of features and row-model factories so the API and types line up.

Core Features & Use Cases

  • Typed v9 feature registration: Define _features via tableFeatures() so only the APIs/state slices you need exist and tree-shaking works as expected.
  • Row-model factory wiring: Register the matching factories in _rowModels (e.g., pagination, sorting, filtering) using the appropriate registries.
  • Type-safe column definitions: Create a column helper with the required generic order typeof _features first, then TData, and build columns with accessor helpers.
  • Reactive data + rendering: Use reactive getters for options like data and render headers/rows with FlexRender to get a complete working table.

Quick Start

Ask the AI to generate a complete Solid v9 table example using tableFeatures(), matching _rowModels, createColumnHelper<typeof _features, TData>(), createTable({ get data() {...} }), and FlexRender for header and cell rendering.

Frequently Asked Questions about solid/getting-started

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a TanStack Table v9 implementation in SolidJS with TypeScript?

To set up a TanStack Table v9 implementation in Solid, wire features via `tableFeatures()`, register matching row-model factories, and create type-safe columns using `createColumnHelper`. Render headers and cells reactively using `FlexRender` with reactive getters for table options.

Why do I need to register features and row-models separately in TanStack Table v9?

Registering features and row-models separately in TanStack Table v9 ensures only the APIs and state slices you need exist, enabling tree-shaking. Wiring the matching factories in `_rowModels` is required so the table API and TypeScript types align correctly for your datagrid.

Can I build a typed Solid datagrid with sorting, filtering, and pagination from scratch?

You can build a typed Solid datagrid with sorting, filtering, and pagination by registering the required row-model factories in `_rowModels` and defining the corresponding features. Render the resulting rows and header groups using `FlexRender` from your reactive Solid state.

What is the correct generic order for creating type-safe columns in a Solid TanStack Table?

The correct generic order for type-safe column definitions is `createColumnHelper<typeof _features, TData>()`. Placing the registered features type first ensures the column helper exposes the correct APIs and state slices for your specific table configuration.

How do I render TanStack Table headers and rows reactively in SolidJS?

Render TanStack Table headers and rows reactively in SolidJS by using `FlexRender` for header groups and cells. Pass reactive getters like `get data()` into `createTable()` so the table instance updates automatically when your underlying Solid state changes.