Interface Virtualizer

A value returned from the useVirtualizer hook.

interface Virtualizer {
    items: readonly VirtualItem[];
    scrollTo(itemIndex: number, options?: VirtualizerScrollToOptions): void;
}

Properties

Methods

Properties

items: readonly VirtualItem[]

An array of items to render.

Note: Items of this array may be reused between re-renders.

Methods

  • Scrolls list to an item with the given index.

    Parameters

    Returns void