@josmangarsal/pragmatic-scheduler
Version:
React resource scheduler
21 lines (20 loc) • 595 B
TypeScript
interface ScrollLoadingConfig {
gestureDuration?: number;
minWheelDelta?: number;
resetDelay?: number;
}
export declare const useScrollLoading: ({ scrollRef }: {
scrollRef: React.RefObject<HTMLDivElement>;
}, config?: ScrollLoadingConfig) => {
ScrollReboundLoader: {
({ direction }: {
direction: 'left' | 'right';
}): import("@emotion/react/jsx-runtime").JSX.Element | null;
displayName: string;
};
isLoadingLeft: boolean;
isLoadingRight: boolean;
progress: number;
isActive: boolean;
};
export {};