Skip to content

pSnehanshu/react-gravatar-or-initials

Repository files navigation

react-gravatar-or-initials

React component to display user avatars from Gravatar or initials from UI-Avatars.com

NPM JavaScript Style Guide

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='hello@snehanshu.com'
        name='Snehanshu Phukon'
        size={120}
        fontSize={0.5}
        initialsLength={2}
        color='8b5d5d'
        bgColor='f0e9e9'
        uppercase
      />
    )
  }
}

View example here

License

MIT © pSnehanshu

About

React component to display user avatars from Gravatar or initials from UI-Avatars.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published