Description
react-gravatar is a React component that shows a Gravatar profile picture for an email address. Gravatar is a service that serves avatar images linked to an email, and this component builds the image URL for you and renders it in your interface. The README says it adjusts automatically to HiDPI displays. You install it with npm install react-gravatar and pass an email to the component. If you do not want to send the email address to the browser, you can compute the MD5 hash on the server and pass the hash through the md5 prop instead. The defaults are a 50 by 50 pixel image, G-rated photos, the http protocol, retro backup faces for emails without a profile, and a react-gravatar CSS class. The README has examples for using the defaults and for overriding all of them, and it links Gravatar's own documentation for every image option. A demo page is linked in the README. The source is public on GitHub, and the project is a small, focused component rather than a full avatar system, so you would use it where a user's email should show as a photo.…
Highlights
- Gravatar profile image for React
- Automatic HiDPI support
- MD5 hash prop to avoid sending the email
- Default size, rating and fallback faces
- Override all defaults
- Demo page
Ratings & Reviews
No ratings yet
Be the first to rate react-gravatar.
People also visit
react-gravatar FAQ
What is react-gravatar?
A React component that renders a Gravatar profile image for an email address.
How do I install it?
Run npm install react-gravatar, then render the component with an email address.
Can I avoid sending the email to the browser?
Yes. The README says to compute the MD5 hash on the server and pass it in the md5 prop instead of the email prop.
What are the default settings?
The README lists a 50 by 50 pixel image, G-rated photos, the http protocol, retro backup faces for emails without profiles, and a react-gravatar CSS class.
What are the best react-gravatar alternatives?
Popular alternatives to react-gravatar include react-avatar, react-avatar-editor and react-graceful-image. See all react-gravatar alternatives




















