react-avatar-loader
v0.0.4
Published
Wrapper on top of <img/> tag for applying fallback background image to banners and thumbnails
Downloads
5
Readme
react-avatar-loader
Simple React component for loading image, thumbnails.
Displays a fallback avatar until the image is loaded
install
npm install react-avatar-loader
Usage
import AvatarLoader from 'react-avatar-loader'
...
<AvatarLoader src='image_to_be_loaded' style={style}/>
...
Accepts Props
src
Type: String
The image URL to be loaded
className
Type: String
classes if any
style
Type: Object
To apply custom style. This style is applicable to both fallback avatar as well the image to be loaded.