d36511479e
* Switch all components to default exports This ensures we can read all components for documentation generation (plus, standardizing is good) * Add documentation to component file * Fix table exports * Move readme docs into inline docs Includes updating new props, adding prop shapes * Add doc-generation scripts to pull exported component docs into folder * Remove key propType, causing react special-keys warning * Fix proptype * Update incorrect comment * Remove template import, we can just use string concat * Fix typo, update docs |
||
---|---|---|
.. | ||
test | ||
README.md | ||
index.js | ||
style.scss |
README.md
Gravatar
Use Gravatar
to display a user's Gravatar.
How to use:
import Gravatar from 'components/gravatar';
render: function() {
return (
<Gravatar
user="email@example.org"
size={ 48 }
/>
);
}
Props
user
: The address to hash for displaying a Gravatar. Can be an email address or WP-API user object.size
: Default 60. The size of Gravatar to request.alt
: Text to display as the image alt attribute.title
: Text to use for the image's titleclassName
: Additional CSS classes.