Skip to content

deerawan/react-gravatar-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Gravatar Image

A react component to show Gravatar image

Install

npm install react-gravatar-image --save

Usage

var React = require('React');
var Gravatar = require('react-gravatar-image');

var App = React.createClass({
  render: function() {
    return (
      <Gravatar email="deerawan@gmail.com" />
    );
  }
});

React.render(
  <App />,
  document.getElementById('app')
);

Options

Available Options

  • email: Gravatar email
  • size: determine image size
  • defaultImage: default image when an email address has no matching Gravatar image
  • forceDefault: force default image to always load
  • rating: image rating to determine if an image is appropriate for a certain audience
  • ssl: serve Gravatar via SSL

More detail explanation about Gravatar options please click here

Example syntax using all options

<Gravatar email="deerawan@gmail.com" size="200" defaultImage="404" forceDefault="y" rating="pg" ssl="true" />

License

MIT License

About

A React component to show Gravatar image

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published