rc-virtual-list
React Virtual List Component
Last updated 3 years ago by afc163 .
MIT · Repository · Bugs · Original npm
$ cnpm install rc-virtual-list 
SYNC missed versions from official npm registry.

rc-virtual-list

React Virtual List Component which worked with animation.

NPM version dumi build status Test coverage node version npm download

Online Preview

https://virtual-list-react-component.vercel.app/

Development

npm install
npm start
open http://localhost:9001/

Feature

  • Support react.js
  • Support animation
  • Support IE11+

Install

rc-virtual-list

Usage

import List from 'rc-virtual-list';

<List data={[0, 1, 2]} height={200} itemHeight={30} itemKey="id">
  {index => <div>{index}</div>}
</List>;

API

List

Prop Description Type Default
children Render props of item (item, index, props) => ReactElement -
component Customize List dom element string | Component div
data Data list Array -
disabled Disable scroll check. Usually used on animation control boolean false
height List height number -
itemHeight Item minium height number -
itemKey Match key with item string -

children provides additional props argument to support IE 11 scroll shaking. It will set style to visibility: hidden when measuring. You can ignore this if no requirement on IE.

Current Tags

  • 3.4.13                                ...           latest (3 years ago)

16 Versions

  • 3.4.13                                ...           3 years ago
  • 3.4.11                                ...           3 years ago
  • 1.0.1                                ...           5 years ago
  • 3.4.8                                ...           3 years ago
  • 3.4.7                                ...           3 years ago
  • 3.4.6                                ...           3 years ago
  • 3.4.4                                ...           3 years ago
  • 3.4.1                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.2.6                                ...           5 years ago
  • 3.2.2                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 1.1.6                                ...           5 years ago
  • 1.1.5                                ...           5 years ago
  • 0.0.0                                ...           6 years ago
  • 1.1.2                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (19)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org