IVirtualProps
interface
Performance
Props for virtualised list components — controls item height, the visible viewport height, and the animated scroll behaviour (duration and easing).
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- itemHeightnumber | string
- Fixed height of each virtualised row — a number resolves to "Npx", or any valid CSS length.
- heightnumber | string
- Visible viewport height of the virtual scroller — constrains how many items are rendered.
- scrollDurationnumber300
- Animation duration in milliseconds for imperative scroll calls (e.g. scrollToIndex). Set to 0 to jump instantly.
- scrollEasingstring'easeInOutCubic'
- Easing function name forwarded to useGoTo (easeInOutCubic, easeOutQuart, …).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Using IVirtualProps on a large dataset