Gathering detailed insights and metrics for @azrico/react-virtuoso
Gathering detailed insights and metrics for @azrico/react-virtuoso
Gathering detailed insights and metrics for @azrico/react-virtuoso
Gathering detailed insights and metrics for @azrico/react-virtuoso
The most powerful virtual list component for React
npm install @azrico/react-virtuoso
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (99.55%)
JavaScript (0.41%)
Shell (0.04%)
Total Downloads
1,073
Last Day
1
Last Week
7
Last Month
21
Last Year
662
MIT License
540 Commits
1 Branches
1 Contributors
Updated on Jul 20, 2024
Minified
Minified + Gzipped
Latest Version
4.7.11-rc.1
Package Id
@azrico/react-virtuoso@4.7.11-rc.1
Unpacked Size
245.14 kB
Size
54.86 kB
File Count
6
NPM Version
10.7.0
Node Version
21.6.2
Published on
Jul 20, 2024
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
75%
7
Compared to previous week
Last Month
-48.8%
21
Compared to previous month
Last Year
61.1%
662
Compared to previous year
1
3
48
React Virtuoso - the most complete React virtualization rendering list/table/grid family of components.
For live examples and documentation, check the documentation website.
If you are using Virtuoso for work, sponsor it. Any donation helps a lot with the project development and maintenance.
1npm install react-virtuoso
1import * as React from 'react' 2import * as ReactDOM from 'react-dom' 3import { Virtuoso } from 'react-virtuoso' 4 5const App = () => { 6 return <Virtuoso style={{ height: '400px' }} totalCount={200} itemContent={index => <div>Item {index}</div>} /> 7} 8 9ReactDOM.render(<App />, document.getElementById('root'))
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.
The GroupedVirtuoso
component is a variant of the "flat" Virtuoso
, with the following differences:
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;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.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.
The TableVirtuoso
component works just like Virtuoso
, but with HTML tables.
It supports window scrolling, sticky headers, sticky columns, and works with React Table and MUI Table.
You can customize the markup up to your requirements - check the Material UI list demo. If you need to support reordering, check the React Sortable HOC example.
For in-depth documentation and live examples of the supported features and live demos, check the documentation website.
To support legacy browsers, you might have to load a ResizeObserver Polyfill before using react-virtuoso
:
import ResizeObserver from 'resize-observer-polyfill'
if (!window.ResizeObserver)
window.ResizeObserver = ResizeObserver
Petyo Ivanov @petyosi.
To run the tests, use npm run test
.
An end-to-end browser-based test suite is runnable with npm run e2e
, with the pages being e2e/*.tsx
and the tests e2e/*.test.ts
.
A convenient way to debug something is to preview the test cases in the browser.
To do that, run npm run dev
- it will launch a Ladle server that lets you browse the components in the examples
folder.
MIT License.
No vulnerabilities found.
No security vulnerabilities found.