react-ui-avatars
Wrapper component for https://ui-avatars.com
Generate avatars from a users intials.
Credit to @LasseRafn for his awesome API.
Demo
https://codepen.io/novigradian/pen/qMwJgg
Installing
Using npm:
npm install react-ui-avatars
Usage
;;; ReactDOM;
Options
Pass props same as specified at https://ui-avatars.com.
Example:
<UIAvatar name='Warren Zevon' size=128 />
Extra props are passed on to <img />
element.
Global Settings
Global settings for your app can be configured. The properties are the same as the props.
The global settings can be overriden on an individual instance of the component by passing the prop.
;;; UIAvatarsettings = size: 128 rounded: true; ReactDOM;