A small, efficient, easy-to-use virtual list for Vue 3
npm install vue-typed-virtual-list !size  !Typescript
A fast, type-safe virtual list component for Vue 3.
Features:
- Extremely efficient calculations
- Provides generic type safety inside the #item slot
- Automatically and transparently deals with variable element heights
- Small footprint. <2KB gzipped
Live Demo · Try it on CodeSandbox
Example:
`` {{ ref.name }}vue
:items="someArrayOfUsers"
>
`
or, with
`
- defaultSize - Placeholder size to use in calculations before an item's actual height has been measureditems
- - Array of items to renderpadding
- - Number of items beyond what is visible in the overflow viewport to render. (Default: 10)
- visibleItemsChanged - Fired when the start/end indices have changed{ start: number; end: number }
- argument type:
- scrollTo(index: number): void - scrolls an index into view
```
yarn
yarn dev
PRs welcome