react-gravatar-or-initials
v1.0.2
Published
React component to display user avatars from Gravatar or initials from UI-Avatars.com
Downloads
50
Readme
react-gravatar-or-initials
React component to display user avatars from Gravatar or initials from UI-Avatars.com
Install
npm install --save react-gravatar-or-initials
Usage
View example here
import React, { Component } from 'react'
import Avatar from 'react-gravatar-or-initials'
import 'react-gravatar-or-initials/dist/index.css'
class Example extends Component {
render() {
return (
<Avatar
email='[email protected]'
name='Snehanshu Phukon'
size={120}
fontSize={0.5}
initialsLength={2}
color='8b5d5d'
bgColor='f0e9e9'
uppercase
/>
)
}
}
View example here
License
MIT © pSnehanshu