Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-virtuoso

> 前端框架
Open source

The most powerful virtual list component for React

6.4K stars0 likes1 views
WebsiteGitHub

About

The most powerful virtual list component for React

React Virtuoso

The most complete React virtualization rendering family of components.

  • Variable sized items out of the box; no manual measurements or hard-coding item heights is necessary;
  • Chat message list UI;
  • Grouped mode with sticky headers;
  • Responsive grid layout;
  • Masonry layout;
  • Table Support;
  • Automatic handling of content resize;
  • Custom Header, Footer, and empty list components;
  • Pinned top items;
  • Endless scrolling, press to load more;
  • Initial top most item index;
  • Scroll to index method.

Get Started

bash
npm install react-virtuoso
javascript
import { Virtuoso } from 'react-virtuoso'

const App = () => {
  return <Virtuoso style={{ height: '400px' }} totalCount={200} itemContent={(index) => 
} />
}

ReactDOM.render(<App />, document.getElementById('root'))

Documentation

For in-depth documentation and live examples of all supported features, check the documentation website.

Components

Message List

The Virtuoso message list component is built specifically for human/chatbot conversations. In addition to the virtualized rendering, the component exposes an imperative data management API that gives you the necessary control over the scroll position when older messages are loaded, new messages arrive, and when the user submits a message. The scroll position can update instantly or with a smooth scroll animation.

Grouped Mode

The GroupedVirtuoso component is a variant of the flat Virtuoso component, with the following differences:

  • Instead of totalCount, the component exposes groupCounts: number[] property, which specifies the amount of items in each group. For example, passing [20, 30] will render two groups with 20 and 30 items each;
  • In addition the itemContent property, the component requires an additional groupContent property, which renders the group header. The groupContent callback receives the zero-based group index as a parameter.

Grid

The VirtuosoGrid component displays same sized items in multiple columns. The layout and item sizing is controlled through CSS class properties, which allows you to use media queries, min-width, percentage, etc.

Masonry

The Masonry component renders columns from varying-height items, suitable for product listings, image galleries, etc.

Table

The TableVirtuoso component works just like Virtuoso, but with HTML tables. It supports window scrolling, sticky headers, sticky columns, and works with Tanstack Table and MUI Table.

Works With Your UI Library

You can customize the markup up to your requirements - check the Material UI list demo.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for development setup, testing guidelines, and pull request process.

Sponsors

If you find Virtuoso valuable for your work, please consider sponsoring the project. Your support helps ensure continued development and maintenance.

Author

Petyo Ivanov @petyosi.

License

MIT License.

Issues· 55 open

View all issuesOpen on GitHub
  • #1495

    [BUG] customScrollParent inside a CSS zoom-ed ancestor: growing gap, missing items, endReached stops firing

    bugUpdated Sep 9, 2026
  • #1490

    [BUG] GroupedVirtuoso - overscan, window scroll, nested Virtuosos - unable to scroll up

    bugUpdated Aug 29, 2026
  • #1447

    scrollToIndex align:'end' to LAST lands mid-list when the last item is not yet measured

    Updated Jun 25, 2026
  • #1417

    new: Virtuoso Data Table

    Updated May 30, 2026
  • #1405

    [BUG] Preserve scroll position when prepending variable-height items before initial scroll

    bugUpdated May 13, 2026
  • #1366

    [BUG] Masonry items jump or overlap when scrolling quickly

    bugUpdated Apr 22, 2026
  • #1384

    [BUG]: GroupedVirtuosoTable wrong group header position

    bugUpdated Apr 9, 2026
  • #1149

    Bug - useWindowScroll doesn't work with horizontalDirection, nor does the Footer

    bugUpdated Apr 4, 2026
  • #1305

    Add support for custom scroller in VirtuosoMasonry

    Updated Apr 1, 2026
  • #1368

    [BUG] Sticky group header flickers during fast scroll in GroupedVirtuoso

    bugUpdated Mar 24, 2026

> Tags

TypeScriptchatcomponent-libraryfeedhacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架