Interface: WindowVirtualizerProps\

July 11, 2026 ยท View on GitHub

API


Interface: WindowVirtualizerProps<T>

Defined in: src/vue/WindowVirtualizer.tsx:32

Props of WindowVirtualizer.

Extends

  • PublicProps

Type Parameters

T

T = unknown

Properties

data

data: T[]

Defined in: src/vue/WindowVirtualizer.tsx:36

The data items rendered by this component.


bufferSize?

optional bufferSize?: number

Defined in: src/vue/WindowVirtualizer.tsx:41

Extra item space in pixels to render before/after the viewport. The minimum value is 0. Lower value will give better performance but you can increase to avoid showing blank items in fast scrolling.

Default Value

200

itemSize?

optional itemSize?: number

Defined in: src/vue/WindowVirtualizer.tsx:48

Item size hint for unmeasured items in pixels. It will help to reduce scroll jump when items are measured if used properly.

  • If not set, initial item sizes will be automatically estimated from measured sizes. This is recommended for most cases.
  • If set, you can opt out estimation and use the value as initial item size.

shift?

optional shift?: boolean

Defined in: src/vue/WindowVirtualizer.tsx:52

While true is set, scroll position will be maintained from the end not usual start when items are added to/removed from start. It's recommended to set false if you add to/remove from mid/end of the list because it can cause unexpected behavior. This prop is useful for reverse infinite scrolling.


horizontal?

optional horizontal?: boolean

Defined in: src/vue/WindowVirtualizer.tsx:56

If true, rendered as a horizontally scrollable list. Otherwise rendered as a vertically scrollable list.


as?

optional as?: keyof IntrinsicElementAttributes

Defined in: src/vue/WindowVirtualizer.tsx:61

Component or element type for container element.

Default Value

"div"

item?

optional item?: keyof IntrinsicElementAttributes

Defined in: src/vue/WindowVirtualizer.tsx:66

Component or element type for item element.

Default Value

"div"

cache?

optional cache?: CacheSnapshot

Defined in: src/vue/WindowVirtualizer.tsx:72

You can restore cache by passing a CacheSnapshot on mount. This is useful when you want to restore scroll position after navigation. The snapshot can be obtained from WindowVirtualizerHandle.cache.

The length of items should be the same as when you take the snapshot, otherwise restoration may not work as expected.


onScroll?

optional onScroll?: () => void

Defined in: src/vue/WindowVirtualizer.tsx:76

Callback invoked whenever scroll offset changes.

Returns

void


onScrollEnd?

optional onScrollEnd?: () => void

Defined in: src/vue/WindowVirtualizer.tsx:80

Callback invoked when scrolling stops.

Returns

void


key?

optional key?: PropertyKey

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1213

Inherited from

PublicProps.key


ref?

optional ref?: VNodeRef

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1214

Inherited from

PublicProps.ref


ref_for?

optional ref_for?: boolean

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1215

Inherited from

PublicProps.ref_for


ref_key?

optional ref_key?: string

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1216

Inherited from

PublicProps.ref_key


onVnodeBeforeMount?

optional onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[]

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1217

Inherited from

PublicProps.onVnodeBeforeMount


onVnodeMounted?

optional onVnodeMounted?: VNodeMountHook | VNodeMountHook[]

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1218

Inherited from

PublicProps.onVnodeMounted


onVnodeBeforeUpdate?

optional onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[]

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1219

Inherited from

PublicProps.onVnodeBeforeUpdate


onVnodeUpdated?

optional onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[]

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1220

Inherited from

PublicProps.onVnodeUpdated


onVnodeBeforeUnmount?

optional onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[]

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1221

Inherited from

PublicProps.onVnodeBeforeUnmount


onVnodeUnmounted?

optional onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[]

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1222

Inherited from

PublicProps.onVnodeUnmounted


class?

optional class?: unknown

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1401

Inherited from

PublicProps.class


style?

optional style?: unknown

Defined in: node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1402

Inherited from

PublicProps.style