stream-chat-react
Version:
React components to create chat conversations or livestream style chat
13 lines (12 loc) • 606 B
TypeScript
import type { PropsWithChildren } from 'react';
import React from 'react';
export type InfiniteScrollPaginatorProps = React.ComponentProps<'div'> & {
listenToScroll?: (distanceFromBottom: number, distanceFromTop: number, threshold: number) => void;
loadNextDebounceMs?: number;
loadNextOnScrollToBottom?: () => void;
loadNextOnScrollToTop?: () => void;
/** Offset from when to start the loadNextPage call */
threshold?: number;
useCapture?: boolean;
};
export declare const InfiniteScrollPaginator: (props: PropsWithChildren<InfiniteScrollPaginatorProps>) => React.JSX.Element;