woocommerce/plugins/woocommerce-admin/packages/components/src/gravatar
Jeff Stieler 4ad17adf36 Generate MD5 hashes without bundling all of Node crypto. (https://github.com/woocommerce/woocommerce-admin/pull/5768)
Reduces the build by 1.2MB.
2020-12-01 20:17:02 -05:00
..
stories Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271) 2020-10-15 14:55:55 +13:00
test Migrate Enzyme tests to React Testing Library (https://github.com/woocommerce/woocommerce-admin/pull/5299) 2020-10-15 08:41:39 -04:00
README.md Fetch component usage documentation from local README.md. 2019-09-06 11:52:18 -07:00
index.js Generate MD5 hashes without bundling all of Node crypto. (https://github.com/woocommerce/woocommerce-admin/pull/5768) 2020-12-01 20:17:02 -05:00
style.scss Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00

README.md

Gravatar

Display a users Gravatar.

Usage

<Gravatar
	user="email@example.org"
	size={ 48 }
/>

Props

Name Type Default Description
user One of type: object, string null The address to hash for displaying a Gravatar. Can be an email address or WP-API user object
alt String null Text to display as the image alt attribute
title String null Text to use for the image's title
size Number 60 Default 60. The size of Gravatar to request
className String null Additional CSS classes