@spaced-out/ui-design-system
Version:
Sense UI components library
15 lines • 591 B
TypeScript
interface InfiniteScrollOptions {
itemSize: number | ((index: number) => number);
threshold: number;
itemsLength: number;
hasNextPage: boolean;
loadMoreItems: () => Promise<void>;
containerHeight: number;
isVariableSizeList?: boolean;
}
export declare function useInfiniteScroll({ itemSize, threshold, itemsLength, hasNextPage, loadMoreItems, containerHeight, isVariableSizeList, }: InfiniteScrollOptions): (scrollData: {
scrollOffset: number;
scrollDirection: 'forward' | 'backward';
}) => void;
export {};
//# sourceMappingURL=useInfiniteScroll.d.ts.map