woocommerce/plugins/woocommerce-admin/client/components/gravatar
Justin Shreve 22028283ef Add Activity Panel Outbound Link Component (https://github.com/woocommerce/woocommerce-admin/pull/213)
* Activity Panel Outbound Link

* Address PR Feedback: Pass through additional props on ActivityOutboundLink, add comment for activity panel wrapping padding, fix README naming, and use $gap $gutter trick for outbound link padding.
2018-07-17 14:51:56 -04:00
..
test Add Gravatar Component (https://github.com/woocommerce/woocommerce-admin/pull/188) 2018-07-11 13:06:26 -04:00
README.md Add Activity Panel Outbound Link Component (https://github.com/woocommerce/woocommerce-admin/pull/213) 2018-07-17 14:51:56 -04:00
index.js Add Gravatar Component (https://github.com/woocommerce/woocommerce-admin/pull/188) 2018-07-11 13:06:26 -04:00
style.scss Add Gravatar Component (https://github.com/woocommerce/woocommerce-admin/pull/188) 2018-07-11 13:06:26 -04:00

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 title
  • fallback: Default mp. Gravatar default fallback mode. See https://en.gravatar.com/site/implement/images/.
  • className: Additional CSS classes.