react-jazzicon
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

react-jazzicon

NPM version License Known Vulnerabilities Downloads

This is a react component for Dan Finlay's jazzicon.

usage

import Jazzicon from 'react-jazzicon'

export default function App(){

  

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

for Ethereum addresses

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

export default function App () {

  

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

setup

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

storybooks

the storybooks github pages are hosted from the /docs directory on the gh-pages branch.

run the storybooks locally by running the following commands:

$ yarn # or npm i
$ yarn storybooks # or npm run storybooks

Package Sidebar

Install

npm i react-jazzicon

Weekly Downloads

10,752

Version

1.0.4

License

MIT

Unpacked Size

26.6 kB

Total Files

27

Last publish

Collaborators

  • marcusmolchany