react-loadable-image
Installation
yarn add react-loadable-image
or
npm install --save react-loadable-image
Usage
; const Example = <Image className="photo" sources=images placeholder=<div className="placeholder" /> />
API
Prop | Type | Description |
---|---|---|
className | string | Component className |
title | string | Image alt text |
sources | string[] | Images list |
placeholder | node | Renders while image not loaded |