UNPKG

@sr3k4nth/lazy-image-react

Version:

Lightweight react component to lazy load images.

13 lines (12 loc) 329 B
import React from "react"; type LazyImageProps = { placeholderSrc: string; placeholderClassName?: string; placeholderStyle?: React.CSSProperties; src: string; alt: string; className?: string; style?: React.CSSProperties; }; declare const LazyImage: React.FC<LazyImageProps>; export default LazyImage;