1.0.2 • Published 10 years ago
react-identicon v1.0.2
React Identicon
Tiny React Component to render an Identicon hosted by Gravatar.
Usage
<<<<<<< HEAD
<Identicon {id=''} {type='identicon'} {size=80} {...otherProps} />
- Fork or clone this repository.
- (Optional) Edit
package.jsonif you intent to publish your package onnpm. npm installto install all the required dependencies fromnpm.- Hack
src/index.jsxandsrc/__tests__/index.jsx. - Lint/test using
gulp. - Don't forget to edit this
README.mdfile.starterkit/master
Creates a new <img> tag containing a gravatar image.
idis a string (which willmd5-hashed internally). Sameidwill yield the same image. Differentidwill (most likely) yield different images.typeis a string which can be eitheridenticon(the default),retro(like github),monsteridorwavatar). This is the type of avatar generated.sizeis the image source in pixels. Note that this can be different from the actual display size of the image, if you specifcystyles.heightfor example.- All other props will be passed directly to the
<img>tag (eg.style,className,onClick, etc).
<<<<<<< HEAD
This module is written in ES6/7. You will need babel to run it.
- Sanely configured
gulpfile.js,package.json,.gitignore,.editorconfig,.eslintrc,.jsbeautifyrc. - Both CommonJS and ES6 modules are supported.
- Linting and testing is pre-configured.
lodash,bluebirdandshouldare included by default.starterkit/master
License
MIT Elie Rotenberg [elie@rotenberg.io](mailto:elie@rotenberg.io)