React Hookers - v6.3.0
    Preparing search index...

    Interface VirtualizerProps

    Props of the useVirtualizer hook.

    interface VirtualizerProps {
        containerRef?: RefObject<Element | null>;
        endIndex: number;
        estimateItemSize?: number | ((index: number) => number);
        isRTL?: boolean;
        onScroll: (info: Readonly<VirtualizerScrollInfo>) => void;
        orientation?: "vertical" | "horizontal";
        overscanSize?: number;
        paddingStart?: number;
        startIndex: number;
    }
    Index

    Properties

    containerRef?: RefObject<Element | null>

    A reference to a scrollable container element. If omitted, the window is used as the container.

    endIndex: number

    The index of the last item (exclusive).

    estimateItemSize?: number | ((index: number) => number)

    An estimated average item size, in pixels, along the scroll axis, or a callback that returns an estimated size for a given item index.

    100
    
    isRTL?: boolean

    If true, horizontal scroll events are interpreted as in an RTL environment.

    By default, RTL is derived from the container.

    onScroll: (info: Readonly<VirtualizerScrollInfo>) => void

    A handler that is called when the container is scrolled.

    Type Declaration

    orientation?: "vertical" | "horizontal"

    The orientation of the scroll axis.

    "vertical"
    
    overscanSize?: number

    The minimum number of pixels that should be rendered offscreen before and after the visible range. Additional items are rendered to satisfy this size.

    0
    
    paddingStart?: number

    Padding, in pixels, to apply to the start of the container.

    0
    
    startIndex: number

    The index of the first item (inclusive).