JSPM

@emeraldpay/hashicon-react

0.5.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 268
  • Score
    100M100P100Q100638F
  • License Apache-2.0

Hashicon React - React component for a visual representation of a hash value, as a hexagon

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}/>