lit/compose-with-tanstack-virtual

Official

Virtualize Lit tables for fast scrolling

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Rendering thousands of Lit table rows becomes slow and unresponsive, especially when users need smooth scrolling in data-dense grids.

Core Features & Use Cases

  • Pair TanStack Table with virtualization: Use @tanstack/lit-virtual because TanStack Table itself does not virtualize rows or columns.
  • Virtualize the post-feature row model: Drive virtualization from table.getRowModel().rows so sorting, filtering, grouping, and pagination stay correct.
  • Drop-in Lit pattern for variable sizing: Use VirtualizerController alongside TableController, render only getVirtualItems(), and measureElement each virtual row.

Quick Start

Ask your AI assistant to show you how to wire VirtualizerController into your @tanstack/lit-table render loop using table.getRowModel().rows.length as the virtualizer count.

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: lit/compose-with-tanstack-virtual
Download link: https://github.com/TanStack/table/archive/main.zip#lit-compose-with-tanstack-virtual

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.