0.5.2 • Published 2 years ago

@emeraldpay/hashicon-react v0.5.2

Weekly downloads
627
License
Apache-2.0
Repository
github
Last release
2 years ago

Hashicon React

Generates a beautiful representation of any string value.

React component for @emeraldpay/hashicon

Install

Install with:

$ npm install @emeraldpay/hashicon-react --save

Usage

import { Hashicon } from 'hashicon-react';

// something that you want to represent visually. For example ID of an object on the screen.
const value = "9dddff8f-be81-4c27-80c8-099327865f3f";

// icon is a <canvas> element
<Hashicon value={value}/>

// Same icon with 80px in size
<Hashicon value={value} size={89}/>