0.0.4 • Published 6 years ago

react-avatar-loader v0.0.4

Weekly downloads
16
License
-
Repository
-
Last release
6 years ago

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.