react-gravatar

React component for rendering a gravatar profile image

  • 所有者: KyleAMathews/react-gravatar
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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" />

主要指标

概览
名称与所有者KyleAMathews/react-gravatar
主编程语言JavaScript
编程语言Makefile (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2014-08-05 16:50:50
推送于2020-09-10 03:55:05
最后一次提交2020-09-09 22:55:03
发布数27
最新版本名称v2.6.3 (发布于 2017-05-22 10:24:44)
第一版名称v0.1.0 (发布于 2014-08-05 10:37:04)
用户参与
星数281
关注者数7
派生数33
提交数118
已启用问题?
问题数30
打开的问题数10
拉请求数24
打开的拉请求数2
关闭的拉请求数100
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?