UNPKG

react-img-toolkit

Version:

A lightweight React library for optimizing image loading through preloading, lazy loading, and caching capabilities

11 lines (10 loc) 286 B
interface UseLazyImageOptions { threshold?: number; rootMargin?: string; } export declare const useLazyImage: (src: string, options?: UseLazyImageOptions) => { isIntersecting: boolean; isLoaded: boolean; ref: import("react").RefObject<HTMLDivElement>; }; export {};