Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gimenete/identicons-react
- Owner: gimenete
- Created: 2015-12-13T18:09:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T18:10:12.000Z (about 9 years ago)
- Last Synced: 2024-11-21T20:22:46.611Z (2 months ago)
- Language: JavaScript
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)
```