react-gravatar

React component for rendering a gravatar profile image

  • Owner: KyleAMathews/react-gravatar
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

react-gravatar

React component for rendering a gravatar profile image. Adjusts automatically to HiDPI displays.

Demo

http://kyleamathews.github.io/react-gravatar/

Install

npm install react-gravatar

Usage

See https://en.gravatar.com/site/implement/images/ for documentation on
all the options.

Avoid exposing email

If you wish to avoid sending an email address to the client, you can
compute the md5 hash on the server and pass the hash to the component
using the md5 prop instead of the email prop.

Defaults

  • 50x50 image
  • g rated photos
  • http
  • retro backup faces for emails without profiles
  • react-gravatar css class

Use defaults

<Gravatar email="mathews.kyle@gmail.com" />

Override all defaults

<Gravatar email="mathews.kyle@gmail.com" size={100} rating="pg" default="monsterid" className="CustomAvatar-image" />

Main metrics

Overview
Name With OwnerKyleAMathews/react-gravatar
Primary LanguageJavaScript
Program languageMakefile (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2014-08-05 16:50:50
Pushed At2020-09-10 03:55:05
Last Commit At2020-09-09 22:55:03
Release Count27
Last Release Namev2.6.3 (Posted on 2017-05-22 10:24:44)
First Release Namev0.1.0 (Posted on 2014-08-05 10:37:04)
用户参与
Stargazers Count279
Watchers Count8
Fork Count33
Commits Count118
Has Issues Enabled
Issues Count30
Issue Open Count10
Pull Requests Count24
Pull Requests Open Count2
Pull Requests Close Count100
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private