react-gravatar

React component for rendering a gravatar profile image

react-gravatar downloads react-gravatar version react-gravatar license

react-gravatar類似套件:
npm下載趨勢
3 年
🌟 在 react-gravatar 的 README.md 中顯示即時使用量圖表,只需複製下面的代碼。
## Usage Trend
[![Usage Trend of react-gravatar](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-gravatar.png)](https://npm-compare.com/react-gravatar#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 在 react-gravatar 的 README.md 中顯示 GitHub stars 趨勢圖表,只需複製下面的代碼。
## GitHub Stars Trend
[![GitHub Stars Trend of react-gravatar](https://npm-compare.com/img/github-trend/react-gravatar.png)](https://npm-compare.com/react-gravatar)
統計詳情
套件
下載數
Stars
大小
Issues
發布時間
許可
react-gravatar23,415282-128 年前MIT
react-gravatar 的 README

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