TanStack Virtual
UI library · Free
Headless virtualization for lists and grids: displays the visible portion of large datasets and reduces DOM load.
Also known as: tanstack/virtual; headless-ui; virtual-list; virtual-scroll

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Display a large list with a limited DOM
- Connect virtual items to rendering the visible portion of a list
Example workflow
A possible workflow; this is not a report of hands-on testing.
Display a large list with a limited DOM.
Before you start
- The component's design, states, and data.
- A compatible framework and the project's styles.
Steps
- Specify the item list, scroll container, and row dimensions.
- Connect virtual items to rendering the visible portion of a list.
- Configure styles and check empty, loading, and error states.
Check your result
- The keyboard, focus indicators, and a screen reader let users complete the action.
- The component works on a narrow screen and with long data values.
Choosing TanStack Virtual
Display a large list with a limited DOM
Choose this when
- Display a large list with a limited DOM
- Connect virtual items to rendering the visible portion of a list
Consider alternatives when
- When choosing for this topic, compare TanStack Virtual with AG Grid. A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare TanStack Virtual with Handsontable. A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Requirements
- Connect container and item measurements, define the list model, and test keyboard navigation.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- The authors' 60 FPS claim is not a guarantee for every device and content type. DOM virtualization does not automatically reduce downloaded image or data sizes.
Frequently asked questions
What can you use for free in TanStack Virtual?
Code and local use under MIT.
What additional costs might arise with TanStack Virtual?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for TanStack Virtual?
MIT for the code; dependencies have separate licenses.
How do you get started with TanStack Virtual?
Specify the item list, scroll container, and row dimensions. Connect virtual items to rendering the visible portion of a list. Configure styles and check empty, loading, and error states.
Which layouts does TanStack Virtual support?
Headless virtualization works with vertical and horizontal lists, grids, and tables. It offers dynamic and measured item sizes, sticky items, and window-scrolling tools. The library determines the visible part of the collection while leaving markup and styles under the application's control.
Related tasks and approaches
- AG Grid
A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Handsontable
A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- TanStack Table
A candidate to compare under the topic: Design systems, UI components. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- TanStack Virtual
- UI
- Development