svelte/compose-with-tanstack-virtual
OfficialVirtualize Svelte tables with TanStack
Software Engineering#svelte#virtualization#tanstack table#infinite scrolling#virtual scroll#dynamic row heights#svelte-virtual
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
TanStack Table renders the full row model for your grid, which can become slow and heavy when you have thousands of rows or expensive per-row markup. This skill shows how to pair TanStack Table with TanStack Virtual so only the visible window is rendered.
Core Features & Use Cases
- Row virtualization with TanStack Virtual: Render only
$rowVirtualizer.getVirtualItems()and position rows withtransform: translateY(...)inside a container sized bygetTotalSize(). - Dynamic row heights support: Use
measureElementto handle variable-height rows (and guard against Firefox measurement quirks). - Additional patterns: Apply the same approach for horizontal (column) virtualization and implement infinite scrolling by loading more when nearing the end.
Quick Start
Ask your agent to explain and implement row virtualization by combining table.getRowModel().rows with createVirtualizer in Svelte, then rendering only the virtual items positioned by translateY within a fixed-height scroll container.
Dependency Matrix
Required Modules
None requiredComponents
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/compose-with-tanstack-virtual Download link: https://github.com/TanStack/table/archive/main.zip#svelte-compose-with-tanstack-virtual Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.