svelte/getting-started

Official

Build your first Svelte 5 TanStack table

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It guides you through creating a working, typed TanStack table in Svelte 5 with the v9 adapter, avoiding common setup mistakes caused by the v9 shape and Svelte runes requirements.

Core Features & Use Cases

  • Svelte 5 + v9 setup: Ensures you’re using the required Svelte version and the correct adapter APIs for v9.
  • Explicit feature and row-model opt-in: Shows how to define _features and register the corresponding _rowModels factories so the table instance exposes the right derived APIs.
  • Strong typing with generics: Demonstrates createColumnHelper<typeof _features, TData>() and ColumnDef<typeof _features, TData> for type-safe columns and cells.
  • Reactive data + render: Uses $state with a get data() reactive getter and renders cells/headers with FlexRender, including best practices like keyed {#each} blocks.
  • Add a feature like pagination: Illustrates how to enable pagination and react to table state from UI controls.
  • Multi-table reuse: Introduces createTableHook/createAppTable patterns for sharing feature and row-model configuration across an app.

Quick Start

Ask the AI to produce a minimal Svelte 5 v9 @tanstack/svelte-table setup that defines _features, _rowModels, typed columns for a Person type, creates the table with createTable({ get data() }), and renders headers and rows using FlexRender.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: svelte/getting-started
Download link: https://github.com/TanStack/table/archive/main.zip#svelte-getting-started

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.