react-gravatar-image
v1.0.2
Published
A react component to show gravatar image
Downloads
21
Maintainers
Readme
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="[email protected]" />
);
}
});
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="[email protected]" size="200" defaultImage="404" forceDefault="y" rating="pg" ssl="true" />