lit/lit-table-controller

Official

Host TanStack Table inside Lit with ease

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the challenge of integrating TanStack Table’s stateful core with LitElement’s rendering lifecycle so the UI stays in sync with table state and option changes.

Core Features & Use Cases

  • ReactiveController lifecycle wiring: Uses Lit’s ReactiveController pattern to construct and manage a single TanStack Table instance per host.
  • Store-driven re-rendering: Subscribes to both table.store (state) and table.optionsStore (options) and triggers host.requestUpdate() when they change.
  • Correct multi-table and multi-host usage: Ensures each LitElement host gets its own controller instance and cleanly tears down subscriptions on hostDisconnected.

Quick Start

Use the lit-table-controller skill to implement a LitElement that creates one TableController per host and calls .table(options, selector?) during render() so the table re-renders as TanStack Table state changes.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: lit/lit-table-controller
Download link: https://github.com/TanStack/table/archive/main.zip#lit-lit-table-controller

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.