README
React Identicon
Tiny React Component to render an Identicon hosted by Gravatar.
Usage
<Identicon {id=''} {type='identicon'} {size=80} {...otherProps} />
<<<<<<< HEAD
- Fork or clone this repository.
- (Optional) Edit
package.json
if you intent to publish your package onnpm
. npm install
to install all the required dependencies fromnpm
.- Hack
src/index.jsx
andsrc/__tests__/index.jsx
. - Lint/test using
gulp
. - Don't forget to edit this
README.md
file.
starterkit/master
Creates a new <img>
tag containing a gravatar image.
id
is a string (which willmd5
-hashed internally). Sameid
will yield the same image. Differentid
will (most likely) yield different images.type
is a string which can be eitheridenticon
(the default),retro
(like github),monsterid
orwavatar
). This is the type of avatar generated.size
is the image source in pixels. Note that this can be different from the actual display size of the image, if you specifcystyles.height
for example.- All other props will be passed directly to the
<img>
tag (eg.style
,className
,onClick
, etc).
babel
to run it.
<<<<<<< HEAD
This module is written in ES6/7. You will need - Sanely configured
gulpfile.js
,package.json
,.gitignore
,.editorconfig
,.eslintrc
,.jsbeautifyrc
. - Both CommonJS and ES6 modules are supported.
- Linting and testing is pre-configured.
lodash
,bluebird
andshould
are included by default.
starterkit/master