{"_id":"@segment/react-tiny-virtual-list","_rev":"569-2d2fd7299620560fe19e2b0feec1211f","name":"@segment/react-tiny-virtual-list","dist-tags":{"latest":"2.2.1"},"versions":{"2.2.1":{"name":"@segment/react-tiny-virtual-list","version":"2.2.1","keywords":["react","reactjs","react-component","virtual","list","scrolling","infinite","virtualized","virtualization","windowing"],"author":{"name":"Clauderic Demers","email":"me@ced.io"},"license":"MIT","_id":"@segment/react-tiny-virtual-list@2.2.1","maintainers":[{"name":"jinapark","email":"jina.park@segment.com"},{"name":"kyliepedersen","email":"kdale@twilio.com"},{"name":"lew-gordon","email":"lew.gordon@segment.com"},{"name":"zkuzmic-segment","email":"zach.kuzmic@segment.com"},{"name":"amaloney","email":"alexander.maloney@segment.com"},{"name":"whamo12","email":"alejandrosaenz117@gmail.com"},{"name":"gnijor","email":"nijor22@gmail.com"},{"name":"lauramunozjimenez","email":"laura.munoz@segment.com"},{"name":"parsa-segment","email":"parsa@segment.com"},{"name":"ynguyen","email":"y.nguyen@segment.com"},{"name":"mshwery","email":"mshwery@gmail.com"},{"name":"flaque","email":"evanjamesconrad@gmail.com"},{"name":"gpsamson","email":"gabriel.samson@segment.com"},{"name":"amillet89","email":"alex@segment.io"},{"name":"av-segment","email":"andrius@segment.com"},{"name":"scruwys1","email":"scott.cruwys@segment.com"},{"name":"rowno","email":"rowno@webspirited.com"},{"name":"chenpengcheng","email":"pengcheng.chen@gmail.com"},{"name":"segmentaimee","email":"aimee@segment.com"},{"name":"eesegment","email":"eric.ellett@segment.com"},{"name":"segmentio","email":"tools@segment.com"},{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"ladanazita","email":"ladanazita@gmail.com"},{"name":"anoonan","email":"amnoonann@gmail.com"},{"name":"peripheral","email":"peter.h.richmond@gmail.com"},{"name":"achille-roussel","email":"achille.roussel@gmail.com"},{"name":"nettofarah","email":"nettofarah@gmail.com"},{"name":"albert.segment","email":"albert@segment.com"},{"name":"segment-danielstjules","email":"danielst.jules@segment.com"},{"name":"jlee9595","email":"justin@segment.com"},{"name":"n2parko","email":"kevin@segment.com"},{"name":"segment-andy-yeo","email":"andy.yeo@segment.com"},{"name":"sahilp","email":"sahil@segment.com"},{"name":"vdemedes","email":"vadimdemedes@hey.com"},{"name":"emilio-gomez-lavin","email":"emilio@segment.com"},{"name":"f2prateek","email":"f2prateek@gmail.com"},{"name":"andreiko_ru","email":"mail@andreiko.ru"},{"name":"xagos","email":"xavier.agostini@mail.mcgill.ca"},{"name":"emily.luckette","email":"emily@segment.com"},{"name":"leifdreizler","email":"leifdreizler@gmail.com"},{"name":"alan-segment","email":"alan@segment.com"},{"name":"tyson_segment","email":"tyson@segment.com"},{"name":"bgamwell","email":"brennan@segment.com"},{"name":"jfabre-segment","email":"julien@segment.com"},{"name":"uditmehta","email":"udit@segment.com"},{"name":"hellooimkat","email":"kateligad@gmail.com"},{"name":"brienne.mcnally","email":"brienne.mcnally@segment.com"},{"name":"sanscontext","email":"lrubin@segment.io"},{"name":"eculver","email":"e@eculver.io"},{"name":"aultimus","email":"matthew.ault@gmail.com"},{"name":"erikdw","email":"edweathers@yahoo.com"},{"name":"fauzyy","email":"barlo.marc@gmail.com"},{"name":"jaimal","email":"jaimalsoni@gmail.com"},{"name":"davidbirdsong","email":"david.birdsong@gmail.com"},{"name":"ktrinh","email":"kelly.trinh@segment.com"},{"name":"calthomson","email":"caledonia.thomson@segment.com"},{"name":"yunqiaohuang","email":"yunqiaohuang@gmail.com"},{"name":"dk1027","email":"dk1027@gmail.com"},{"name":"nickatsegment","email":"nick@segment.com"},{"name":"nielssegment","email":"niels@segment.com"},{"name":"knoonan","email":"catherine.noonan@segment.com"},{"name":"cdrycroft","email":"diggory@segment.com"},{"name":"yabrira","email":"yanisbrianbou@gmail.com"},{"name":"shse","email":"shumov.ss@gmail.com"},{"name":"julee05","email":"ju.lee@segment.com"},{"name":"kamebkj","email":"kamebkj@gmail.com"},{"name":"ryan_segment","email":"ryan.musser@segment.com"},{"name":"laurenmreeder","email":"laurenmreeder@gmail.com"},{"name":"tidothegreat","email":"tido@segment.com"},{"name":"mericsson","email":"mericsson@gmail.com"},{"name":"prayansh-segmentt","email":"prayansh.srivastava@segment.com"},{"name":"stargaesser","email":"agaesser@gmail.com"},{"name":"andyguwc","email":"tianyou@segment.com"},{"name":"jeremylarkin","email":"jeremy.larkin@segment.com"},{"name":"bsneed","email":"brandon.sneed@segment.com"},{"name":"danieljackins","email":"daniel.jackins@segment.com"},{"name":"tomeliaz","email":"tom@tomeliaz.com"},{"name":"segment-seth","email":"seth@segment.com"},{"name":"xav_segment","email":"xavier@segment.com"},{"name":"bihl","email":"andrewbihlva@gmail.com"},{"name":"shamil.ataev","email":"shamil.ataev@segment.com"},{"name":"james9446","email":"james.reynolds@segment.com"},{"name":"priscilla.giatti","email":"priscila.giatti@segment.com"},{"name":"kellylu","email":"kelly.lu@segment.com"},{"name":"smokeybears","email":"peter.cusack@segment.com"},{"name":"jmbuckner","email":"buckner.jared@gmail.com"},{"name":"benhorowitz","email":"npm@benhorowitz.com"},{"name":"yolken-segment","email":"benjamin.yolken@segment.com"},{"name":"nlsun","email":"olassun2@gmail.com"},{"name":"thomas-pelletier-segment","email":"thomas.pelletier@segment.com"},{"name":"brian-segment","email":"brian.j.lai@segment.com"},{"name":"segment-michael","email":"michael.gasparovic@segment.com"},{"name":"cohara87","email":"cohara87@gmail.com"},{"name":"osamakhn","email":"osamakhn@gmail.com"},{"name":"drew-thompson","email":"drew.walter.thompson@gmail.com"},{"name":"andy-li","email":"andy.li@segment.com"},{"name":"segment-jsingh","email":"jeevan.singh+npm@segment.com"},{"name":"vanesng","email":"hello.vanesng@gmail.com"},{"name":"cvillela","email":"cv@lixo.org"},{"name":"pauljaeinyoo","email":"paul.yoo@segment.com"},{"name":"stevenmiller888","email":"stevenmiller888@me.com"},{"name":"mniehe","email":"mniehe@gmail.com"},{"name":"iajiboye","email":"ajiboyeifedayo@gmail.com"},{"name":"stephment","email":"stephanie.varga@segment.com"},{"name":"sharadbhadouria","email":"bhadouria.sharad@gmail.com"},{"name":"emilyc","email":"emily.cai@segment.com"},{"name":"maggieyu","email":"maggie.yu@segment.com"},{"name":"anoonan16","email":"anoonan17@gmail.com"},{"name":"durgani","email":"durgani@yahoo.com"},{"name":"colinlohner","email":"colin@colinlohner.com"},{"name":"julio.farah","email":"julio.farah+second@segment.com"},{"name":"hblanks-segment","email":"hunter.blanks@segment.com"},{"name":"rsata","email":"reid.t.sata@gmail.com"},{"name":"shyaan","email":"shyaan.khan@segment.com"},{"name":"juhaelee","email":"juhaelee.usc@gmail.com"},{"name":"akleiner2","email":"akleiner24@gmail.com"},{"name":"kathryn-taylor","email":"kathryn.taylor@segment.com"},{"name":"andrius-segment","email":"andrius+npm@segment.com"},{"name":"pooyaj","email":"pooya.j@gmail.com"},{"name":"llbsgmt","email":"louis.barrett+npm@segment.com"},{"name":"lab176","email":"lucas.baier@segment.com"},{"name":"valerieernst","email":"valerie.ernst@segment.com"},{"name":"emilyluckette","email":"emily@segment.com"},{"name":"ucarion","email":"ulyssecarion@gmail.com"},{"name":"solon.aguiar","email":"solon.aguiar@segment.com"},{"name":"rjenkinsseg","email":"ray.jenkins@segment.com"},{"name":"segment-ulysse","email":"ulysse@segment.com"},{"name":"khinkalilover","email":"sam.kahr@segment.com"},{"name":"maloneya","email":"maloney.a12@gmail.com"},{"name":"zackurey","email":"zach.kurey@segment.com"},{"name":"kelcook","email":"kelly.cook@segment.com"},{"name":"arta.razavi","email":"arta.razavi@segment.com"},{"name":"odoren","email":"oliver.doren@gmail.com"},{"name":"alistairbarrell","email":"alistair.barrell@segment.com"},{"name":"anna.choi","email":"anna.choi@segment.com"},{"name":"gilomer","email":"gil.omer@segment.com"},{"name":"kiara.daswani","email":"kiara.daswani@segment.com"},{"name":"marcelopv","email":"marcelo.pratesvargas@segment.com"},{"name":"yannieyip","email":"yannie.yip@segment.com"},{"name":"eric.rogner","email":"eric.rogner@segment.com"},{"name":"marinhero","email":"alcara_m@pm.me"},{"name":"lcamposg","email":"lcamposguajardo@gmail.com"},{"name":"corey.ching","email":"corey.ching@segment.com"},{"name":"steve_at_segment","email":"steve@segment.com"},{"name":"tepahk","email":"tepahk@gmail.com"},{"name":"sorrel.j","email":"sorrel.june@segment.com"},{"name":"cjo2","email":"christopher.docuyanan@segment.com"},{"name":"fc-segment","email":"frank.cuthbertson@segment.com"},{"name":"kdharaiya","email":"krishnatushar.dharaiya@segment.com"},{"name":"warrengreen","email":"s.green.warren@gmail.com"},{"name":"jon.anderson-at-segment.com","email":"jon.anderson@segment.com"},{"name":"markzegarelli","email":"mark.zegarelli@segment.com"},{"name":"logan.luque","email":"logan.luque@segment.com"},{"name":"stysegment","email":"sydney.ty@segment.com"},{"name":"ajhenry","email":"andrew.henry@pitt.edu"},{"name":"stacy.song","email":"stacy.song@segment.com"},{"name":"niveda.balananthan","email":"niveda.balananthan@segment.com"},{"name":"collinvandyck","email":"collinvandyck@gmail.com"},{"name":"krlv","email":"eug.krlv@gmail.com"},{"name":"rexatsegment","email":"rex.chen@segment.com"},{"name":"nickaguilar","email":"nicholas.aguilar@segment.com"},{"name":"tri.truong","email":"tri.truong@segment.com"},{"name":"csayuso","email":"cesar.ayuso@segment.com"},{"name":"joyce-shi","email":"joyce.shi@segment.com"},{"name":"bradenbecker","email":"braden.becker@gmail.com"},{"name":"neha.sanghrajka","email":"neha.sanghrajka@segment.com"},{"name":"reneewang","email":"renee.wang@segment.com"},{"name":"dan.lasky","email":"dan.lasky@segment.com"},{"name":"sam.tapia","email":"sam.tapia@segment.com"},{"name":"gbbastos","email":"gui.b.bastos@gmail.com"},{"name":"vikramkumar19","email":"vikram.kumar@segment.com"},{"name":"mpriyad25","email":"monika.priyadarshini@segment.com"},{"name":"peter.walker","email":"peter.walker@segment.com"},{"name":"jeremy.parker","email":"jeremy.parker@segment.com"},{"name":"khamidou-segment","email":"karim.hamidou@segment.com"},{"name":"smidges","email":"nicksmider@gmail.com"},{"name":"daltonscharff","email":"dalton.scharff@gmail.com"}],"homepage":"https://github.com/clauderic/react-tiny-virtual-list","bugs":{"url":"https://github.com/clauderic/react-tiny-virtual-list/issues"},"dist":{"shasum":"658da8a93cfb83537235c89307818d6f1741aeb3","tarball":"https://registry.npmjs.org/@segment/react-tiny-virtual-list/-/react-tiny-virtual-list-2.2.1.tgz","fileCount":14,"integrity":"sha512-G01b9DrsQLF+8yFRyyJeZBZkzbFuqILG9C7SFFS+GtTFbjdprkHt0CL0riCPOZfe1ZXiT8z8MaKoWfNhrfUjhQ==","signatures":[{"sig":"MEYCIQCuCqPbn9VWWU+Y0AOjHWFeuz8euR2Assny2ertDcpBNAIhAKRoW2cBTKy7OWiuAoN/3vkWRDFgkRDBf+nHIrUuInFV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":109914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAgnqCRA9TVsSAnZWagAA/SsQAItuhyZOFPfIPke+5l46\n478Hizt8V4+ZrLowhNhZGSE8/8GAao+XI17YjfN2WrpVz+yUJGnxs1IwwiQr\nVfKAR1tJeyFOKNclc6MjXyDJt7UdHQu5aih7EQpidCAU4PgDpMab85+MWu64\nl+fVOou4KJBD9b5C8cPrV/ODd+8cnfD6m6cXaofIJTeas2bWgi8Nw4fWqKiv\nOSUV/tbUufOFUVfBsoDZd/WEoBcq3XRUreR3mDLumzmhOw14lhPvnrHFT375\nVtY061+sBFn/qvEqc6k+axylbUz7d2tIwNmDx7PEVTLZURfuCjcyjwP+288J\nux4fM1yfxpWKCjwWNzix4omg5NEMY7yCqXs8TkfcBQUozJnpwN5tuayXLHMr\n7EKtQbfh3JhskMyfjqO8LlVsd80Wjksg/NPJQ0DB1Vx7yE7k7tIjpjgUgir/\nI7sAOSY9mU3DYjj0as9P03n3I2xKP4m8Kp8GdP+B59G75lcxb4pUcywE7yj4\n8ChCwmRenHqzgGRMCV9+zEB3dpqrmQlo/kvrYY3O+OQU+aGQPS2r9QuzAQh/\nskvAQLsF+9syiT0ZvHK4eShw6GnylSm04oFgaSrIMuV+UTSibZEidEDMfF83\n1dzvz3gm3S9MULu4xYjbkPT4LJTqAkITyS6jnuHKsxYJFKp11JCbFyP01v+3\nfQU+\r\n=zyzi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/react-tiny-virtual-list.cjs.js","user":"clauderic","types":"types/index.d.ts","module":"build/react-tiny-virtual-list.es.js","scripts":{"lint":"eslint ./src --ext .ts,.tsx --max-warnings 0 --format codeframe","test":"jest --config ./config/jest/config.json --no-cache","build":"babel-node --presets es2015 ./config/build.js","start":"nwb serve-react-app demo/src/index.tsx --config ./config/nwb/config.js","test:ci":"npm run lint && npm run test && codecov","test:watch":"npm run test -- --watch","test:coverage":"npm run test -- --coverage"},"_npmUser":{"name":"mshwery","email":"mshwery@gmail.com"},"repository":{"url":"https://github.com/clauderic/react-tiny-virtual-list.git","type":"git"},"description":"A tiny but mighty list virtualization component, with zero dependencies 💪","directories":{},"jsnext:main":"build/react-tiny-virtual-list.es.js","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2017, Claudéric Demers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"prop-types":"^15.5.7"},"_hasShrinkwrap":false,"devDependencies":{"nwb":"0.15.x","jest":"^19.0.2","react":"^17.0.2","eslint":"^4.10.0","rimraf":"^2.6.1","rollup":"^0.49.2","tslint":"^5.10.0","codecov":"^1.0.1","fs-extra":"^4.0.1","babel-cli":"^6.26.0","react-dom":"^17.0.2","babel-jest":"^19.0.0","typescript":"2.8.3","@types/jest":"^20.0.8","@types/react":"^17.0.15","babel-eslint":"7.0.0","@types/react-dom":"^17.0.9","@types/prop-types":"^15.7.4","babel-preset-react":"^6.23.0","babel-preset-es2015":"^6.22.0","rollup-plugin-babel":"^3.0.2","rollup-plugin-uglify":"^2.0.1","eslint-plugin-shopify":"^22.1.0","tslint-config-shopify":"^3.0.2","rollup-plugin-commonjs":"^8.2.0","babel-preset-typescript":"^7.0.0-alpha.19","awesome-typescript-loader":"^3.2.1","rollup-plugin-typescript2":"^0.15.0","rollup-plugin-node-resolve":"^3.0.0"},"peerDependencies":{"react":">=16.3"},"_npmOperationalInternal":{"tmp":"tmp/react-tiny-virtual-list_2.2.1_1627523562251_0.1981310728561303","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-07-29T01:52:42.250Z","modified":"2026-06-11T22:36:33.071Z","2.2.1":"2021-07-29T01:52:42.381Z"},"bugs":{"url":"https://github.com/clauderic/react-tiny-virtual-list/issues"},"author":{"name":"Clauderic Demers","email":"me@ced.io"},"license":"MIT","homepage":"https://github.com/clauderic/react-tiny-virtual-list","keywords":["react","reactjs","react-component","virtual","list","scrolling","infinite","virtualized","virtualization","windowing"],"repository":{"url":"https://github.com/clauderic/react-tiny-virtual-list.git","type":"git"},"description":"A tiny but mighty list virtualization component, with zero dependencies 💪","maintainers":[{"email":"secure-supply-chain@twilio.com","name":"twilio-supply-chain"},{"email":"tools@segment.com","name":"segmentio"},{"email":"tools+npm@segment.com","name":"segment-admin"}],"readme":"<div align=\"center\" style=\"margin-bottom: 30px;\">\n<img src=\"https://cloud.githubusercontent.com/assets/1416436/23387281/9a628ec4-fd29-11e6-9a1a-09f755c21a14.png\" width=\"224\"/>\n</div>\n\n# react-tiny-virtual-list\n\n> A tiny but mighty list virtualization library, with zero dependencies 💪\n\n[![npm version](https://img.shields.io/npm/v/react-tiny-virtual-list.svg)](https://www.npmjs.com/package/react-tiny-virtual-list)\n[![npm downloads](https://img.shields.io/npm/dm/react-tiny-virtual-list.svg)](https://www.npmjs.com/package/react-tiny-virtual-list)\n[![Build Status](https://travis-ci.org/clauderic/react-tiny-virtual-list.svg?branch=master)](https://travis-ci.org/clauderic/react-tiny-virtual-list)\n[![codecov](https://codecov.io/gh/clauderic/react-tiny-virtual-list/branch/master/graph/badge.svg)](https://codecov.io/gh/clauderic/react-tiny-virtual-list)\n![typescript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-blue.svg)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/clauderic/react-tiny-virtual-list/blob/master/LICENSE)\n[![Gitter](https://badges.gitter.im/clauderic/react-tiny-virtual-list.svg)](https://gitter.im/clauderic/react-tiny-virtual-list)\n\n- **Tiny & dependency free** – Only 3kb gzipped\n- **Render millions of items**, without breaking a sweat\n- **Scroll to index** or **set the initial scroll offset**\n- **Supports fixed** or **variable** heights/widths\n- **Vertical** or **Horizontal** lists\n\nCheck out the [demo](https://clauderic.github.io/react-tiny-virtual-list/) for some examples, or take it for a test drive right away in [Code Sandbox](https://codesandbox.io/s/kymm7z9qr).\n\n## Getting Started\n\nUsing [npm](https://www.npmjs.com/):\n\n```\nnpm install react-tiny-virtual-list --save\n```\n\nES6, CommonJS, and UMD builds are available with each distribution. For example:\n\n```js\nimport VirtualList from 'react-tiny-virtual-list';\n```\n\nYou can also use a global-friendly UMD build:\n\n```html\n<script src=\"react-tiny-virtual-list/umd/react-tiny-virtual-list.js\"></script>\n<script>\nvar VirtualList = window.VirtualList;\n...\n</script>\n```\n\n## Example usage\n\n```js\nimport React from 'react';\nimport {render} from 'react-dom';\nimport VirtualList from 'react-tiny-virtual-list';\n\nconst data = ['A', 'B', 'C', 'D', 'E', 'F', ...];\n\nrender(\n  <VirtualList\n    width='100%'\n    height={600}\n    itemCount={data.length}\n    itemSize={50} // Also supports variable heights (array or function getter)\n    renderItem={({index, style}) =>\n      <div key={index} style={style}> // The style property contains the item's absolute position\n        Letter: {data[index]}, Row: #{index}\n      </div>\n    }\n  />,\n  document.getElementById('root')\n);\n```\n\n### Prop Types\n\n| Property          | Type               | Required? | Description                                                                                                                                                                                                                                                                                                                                                                                                                           |\n| :---------------- | :----------------- | :-------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| width             | Number \\| String\\* | ✓         | Width of List. This property will determine the number of rendered items when scrollDirection is `'horizontal'`.                                                                                                                                                                                                                                                                                                                      |\n| height            | Number \\| String\\* | ✓         | Height of List. This property will determine the number of rendered items when scrollDirection is `'vertical'`.                                                                                                                                                                                                                                                                                                                       |\n| itemCount         | Number             | ✓         | The number of items you want to render                                                                                                                                                                                                                                                                                                                                                                                                |\n| renderItem        | Function           | ✓         | Responsible for rendering an item given it's index: `({index: number, style: Object}): React.PropTypes.node`. The returned element must handle key and style.                                                                                                                                                                                                                                                                         |\n| itemSize          |                    | ✓         | Either a fixed height/width (depending on the scrollDirection), an array containing the heights of all the items in your list, or a function that returns the height of an item given its index: `(index: number): number`                                                                                                                                                                                                            |\n| scrollDirection   | String             |           | Whether the list should scroll vertically or horizontally. One of `'vertical'` (default) or `'horizontal'`.                                                                                                                                                                                                                                                                                                                           |\n| scrollOffset      | Number             |           | Can be used to control the scroll offset; Also useful for setting an initial scroll offset                                                                                                                                                                                                                                                                                                                                            |\n| scrollToIndex     | Number             |           | Item index to scroll to (by forcefully scrolling if necessary) x                                                                                                                                                                                                                                                                                                                                                                      |\n| scrollToAlignment | String             |           | Used in combination with `scrollToIndex`, this prop controls the alignment of the scrolled to item. One of: `'start'`, `'center'`, `'end'` or `'auto'`. Use `'start'` to always align items to the top of the container and `'end'` to align them bottom. Use `'center`' to align them in the middle of the container. `'auto'` scrolls the least amount possible to ensure that the specified `scrollToIndex` item is fully visible. |\n| stickyIndices     | Number[]           |           | An array of indexes (eg. `[0, 10, 25, 30]`) to make certain items in the list sticky (`position: sticky`)                                                                                                                                                                                                                                                                                                                             |\n| overscanCount     | Number             |           | Number of extra buffer items to render above/below the visible items. Tweaking this can help reduce scroll flickering on certain browsers/devices.                                                                                                                                                                                                                                                                                    |\n| estimatedItemSize | Number             |           | Used to estimate the total size of the list before all of its items have actually been measured. The estimated total height is progressively adjusted as items are rendered.                                                                                                                                                                                                                                                          |\n| onItemsRendered   | Function           |           | Callback invoked with information about the slice of rows/columns that were just rendered. It has the following signature: `({startIndex: number, stopIndex: number})`.                                                                                                                                                                                                                                                               |\n| onScroll          | Function           |           | Callback invoked whenever the scroll offset changes within the inner scrollable region. It has the following signature: `(scrollTop: number, event: React.UIEvent<HTMLDivElement>)`.                                                                                                                                                                                                                                                  |\n\n_\\* Width may only be a string when `scrollDirection` is `'vertical'`. Similarly, Height may only be a string if `scrollDirection` is `'horizontal'`_\n\n### Public Methods\n\n#### recomputeSizes (index: number)\n\nThis method force recomputes the item sizes after the specified index (these are normally cached).\n\n`VirtualList` has no way of knowing when its underlying data has changed, since it only receives a itemSize property. If the itemSize is a `number`, this isn't an issue, as it can compare before and after values and automatically call `recomputeSizes` internally.\nHowever, if you're passing a function to `itemSize`, that type of comparison is error prone. In that event, you'll need to call `recomputeSizes` manually to inform the `VirtualList` that the size of its items has changed.\n\n### Common Issues with PureComponent\n\n`react-tiny-virtual-list` uses [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent), so it only updates when it's props change. Therefore, if only the order of your data changes (eg `['a','b','c']` => `['d','e','f']`), `react-tiny-virtual-list` has no way to know your data has changed and that it needs to re-render.\n\nYou can force it to re-render by calling [forceUpdate](https://reactjs.org/docs/react-component.html#forceupdate) on it or by passing it an extra prop that will change every time your data changes.\n\n## Reporting Issues\n\nFound an issue? Please [report it](https://github.com/clauderic/react-tiny-virtual-list/issues) along with any relevant details to reproduce it. If you can, please provide a live demo replicating the issue you're describing. You can [fork this Code Sandbox](https://codesandbox.io/s/kymm7z9qr) as a starting point.\n\n## Contributions\n\nFeature requests / pull requests are welcome, though please take a moment to make sure your contributions fits within the scope of the project. [Learn how to contribute](https://github.com/clauderic/react-tiny-virtual-list/blob/master/CONTRIBUTING.md)\n\n## Acknowledgments\n\nThis library draws inspiration from [react-virtualized](https://github.com/bvaughn/react-virtualized), and is meant as a bare-minimum replacement for the [List](https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md) component. If you're looking for a tiny, lightweight and dependency-free list virtualization library that supports variable heights, you're in the right place! If you're looking for something that supports more use-cases, I highly encourage you to check out [react-virtualized](https://github.com/bvaughn/react-virtualized) instead, it's a fantastic library ❤️\n\n## License\n\nreact-tiny-virtual-list is available under the MIT License.\n","readmeFilename":"README.md"}