Framework setup

Use the adapter for the framework that owns your item DOM. All adapters share the same core geometry and measurement behavior, but their public bindings follow the lifecycle and reactivity conventions of their framework.

RendererInstall
Reactnpm install @af-utils/virtual-react react
Preactnpm install @af-utils/virtual-preact preact
Solidnpm install @af-utils/virtual-solid solid-js
Sveltenpm install @af-utils/virtual-svelte svelte
Litnpm install @af-utils/virtual-lit lit
Vuenpm install @af-utils/virtual-vue vue
No frameworknpm install @af-utils/virtual-core

The package manifests define the exact supported peer ranges. See support and compatibility before upgrading a framework major.

Start from working code

The implementations below are built and tested as standalone applications. Each page includes its complete source tree and package manifest.

Pick the right entry point

RequirementStart with
One ordinary scrolling listThe simple-list implementation above
Direct access to range stateSimple primitives
A window or nested scrollerNested container or window scrolling
A table or two-axis gridChoose an API level
Canvas or a new framework adapter@af-utils/virtual-core

Do not begin with core merely to reduce bundle size. Framework adapters are thin bindings around core and remove lifecycle code that an application would otherwise need to own.