Skip to content

Mikhe/react-virtual-scroll-auto

Repository files navigation

react-virtual-scroll-auto

Sometimes we need a little bit more than just a virtual scroll. For instance, if we have elements without static height.

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-virtual-scroll-auto

Usage

import React from 'react'

import { VirtualScroll } from 'react-virtual-scroll-auto'

class Example extends Component {
  render() {
    return <VirtualScroll
       items={items}                /* array of children */
       itemCount={items.length}     /* quantity of children */
       rowHeight={50}               /* row basic height */
       containerHeight={200}        /* container height */
    />
  }
}

Live Example

https://mikhe.github.io/react-virtual-scroll-auto/

License

MIT © Mikhe

About

React-based virtual scroll with auto height

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published