@react-comp/lazyload
v0.0.2
Published
lazyload
Downloads
1
Readme
Introduction
lazyload
Install
npm
npm install "@react-comp/lazyload"
yarn
yarn add "@react-comp/lazyload"
Demo
Usage
import Lazyload from "@react-comp/lazyload";
import "@react-comp/lazyload/dist/lazyload.css";
// ...
prop
<Lazyload
src: string, // image source
defaultSrc: string, // image default source
alt?: string, // alt
className?: string[] | string, // className
style?: object, // style
/>
todo
[ ] Support left and right sliding
[ ] Support specified trigger distance