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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

itemHeight
number | string
Fixed height of each virtualised row — a number resolves to "Npx", or any valid CSS length.
height
number | string
Visible viewport height of the virtual scroller — constrains how many items are rendered.
scrollDuration
number
300
Animation duration in milliseconds for imperative scroll calls (e.g. scrollToIndex). Set to 0 to jump instantly.
scrollEasing
string
'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

html