Props that an implementation of VirtualContentRender must accept.

interface VirtualContentProps {
    horizontalOffset: number;
    isScrolling?: boolean;
    verticalOffset: number;
}

Properties

horizontalOffset: number

Current scroll position horizontal offset

isScrolling?: boolean

Is the owning component being actively scrolled? Used to change how the content is rendered depending on scroll state.

Only defined if VirtualScrollableProps.useIsScrolling is true.

verticalOffset: number

Current scroll position vertical offset