react-infinite-scroll-smart
Version:
Infinite scroll component for list and reverse list, feed and chats
13 lines (12 loc) • 412 B
TypeScript
import { type PropsWithChildren } from "react";
type Props = PropsWithChildren & {
callback: () => Promise<void>;
className?: string;
disabled?: boolean;
useWindowScroll?: boolean;
direction?: "bottom" | "top";
style?: React.CSSProperties;
rootMargin?: string;
};
declare const InfiniteScroll: (props: Props) => import("react/jsx-runtime").JSX.Element;
export default InfiniteScroll;