0.1.0 • Published 9 years ago

identicons-react v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

identicons-react

Simple module to create SVG identicons like the ones used by GitHub.

Identicon

Installing

npm install identicons-react --save

Usage

<div id="identicon"></div>

Plain JavaScript

var React = require('react')
var ReactDOM = require('react-dom')
var Identicons = require('identicons-react')

var mountNode = document.getElementById('identicon')
ReactDOM.render(React.createElement(Identicons, { id: 'username@example.com', width: 200, size: 5 }), mountNode)

Using JSX

var React = require('react')
var ReactDOM = require('react-dom')
var Identicons = require('identicons-react')

var mountNode = document.getElementById('identicon')
ReactDOM.render(<Identicons id='username@example.com' width={200} size={5} />, mountNode)
0.1.0

9 years ago