Props accepted by VirtualListItem

interface VirtualListItemProps {
    data: unknown;
    index: number;
    isScrolling?: boolean;
    style: CSSProperties;
}

Hierarchy (view full)

Properties

data: unknown

Value of VirtualBaseProps.itemData from owning component

index: number

Index of item in the list being rendered

isScrolling?: boolean

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

Only defined if VirtualBaseProps.useIsScrolling is true.

style: CSSProperties

Style that should be applied to each item rendered. Positions the item within the inner container.