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-gravatar24,071282-129年前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" />