UNPKG

@papernote/ui

Version:

A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive

23 lines 944 B
import React from 'react'; export interface InfiniteScrollProps { /** Function to load more data */ loadMore: () => Promise<void>; /** Whether there is more data to load */ hasMore: boolean; /** Loading state */ loading?: boolean; /** Children to render */ children: React.ReactNode; /** Threshold in pixels from bottom to trigger load */ threshold?: number; /** Custom loader component */ loader?: React.ReactNode; /** Scroll container element (defaults to window) */ scrollContainer?: HTMLElement | null; /** Reverse mode (load from top instead of bottom) */ reverse?: boolean; /** Custom class name */ className?: string; } export default function InfiniteScroll({ loadMore, hasMore, loading, children, threshold, loader, scrollContainer, reverse, className, }: InfiniteScrollProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=InfiniteScroll.d.ts.map