Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gimenete/identicons-react

React component for generating identicons
https://github.com/gimenete/identicons-react

Last synced: 3 days ago
JSON representation

React component for generating identicons

Awesome Lists containing this project

README

        

# identicons-react

Simple module to create SVG identicons like the ones used by [GitHub](https://github.com/blog/1586-identicons).

![Identicon](https://raw.githubusercontent.com/gimenete/identicons-react/master/examples/identicon.png)

## Installing

```
npm install identicons-react --save
```

## Usage

```html


```

### Plain JavaScript

```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: '[email protected]', width: 200, size: 5 }), mountNode)
```

### Using JSX

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

var mountNode = document.getElementById('identicon')
ReactDOM.render(, mountNode)
```