tetcoin-identicon
TypeScript icon, indicating that this package has built-in type declarations

1.1.45-b • Public • Published

tetcoin-identicon

A Tetcoin-themed SS58 identicon

usage

To install the component, do npm install --save tetcoin-identicon

Inside a React component, you can now render any Tetcoin account with the associated icon -

import Identicon from 'tetcoin-identicon';

...
render () {
	// address is either string (ss58-encoded address) or Uint8Array (publicKey)
	const { address } = this.props;
	// size is a number, indicating the size (in pixels)
	const size = 32;

	return (
		<Identicon
			className='my-class'
			account={address}
			size={size}
		/>
	);
}
...

Package Sidebar

Install

npm i tetcoin-identicon

Weekly Downloads

1

Version

1.1.45-b

License

Apache-2.0

Unpacked Size

18.7 kB

Total Files

7

Last publish

Collaborators

  • marlonhanks