react-jazzicon-custom-colors
React component for danfinlay/jazzicon
Last updated a year ago by tosite .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-jazzicon-custom-colors 
SYNC missed versions from official npm registry.

react-jazzicon-custom-colors

NPM version dependencies Status devDependencies Status Known Vulnerabilities

This is a forked version for marcusmolchany's jazzicon.

usage

import Jazzicon from 'react-jazzicon-custom-colors'

export default class App extends React.Component {

  …

  render() {
    return (
      <Jazzicon colors={myColorsArray} diameter={100} seed={Math.round(Math.random() * 10000000)} />
    )
  }
}

for Ethereum addresses

import Jazzicon, { jsNumberForAddress } from 'react-jazzicon-custom-colors'

export default class App extends React.Component {

  …

  render() {
    return (
      <Jazzicon colors={myColorsArray} diameter={100} seed={jsNumberForAddress('0x1111111111111111111111111111111111111111')} />
    )
  }
}

setup

$ git clone https://github.com/redlanta/react-jazzicon
$ cd react-jazzicon
$ yarn # or npm i

demo page

the demo page is on the gh-pages branch in the demo folder.

# first install dependencies in the top level package
$ yarn # or npm i

# then checkout the gh-pages branch and install dependencies in the "demo" folder
$ git checkout gh-pages
$ cd demo && yarn # or npm i
$ yarn start # or npm run start

Current Tags

  • 0.1.7                                ...           latest (a year ago)

5 Versions

  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (3)
Dev Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |