Package Exports
- @emeraldpay/hashicon-react
- @emeraldpay/hashicon-react/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@emeraldpay/hashicon-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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}/>