This package will avatarize any element with class='avatarize'
npm install avatarize --save
import {avatarize} from avatarize;
avatarize({
shape: 'round',
color: 'red',
shadow: true
})
Avatarize supports following options:
- shape - round | square (Defaults to square)
- color - color value (#fff000 or yellow)
- shadow - boolean (Defaults to false)