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

0.4.0 • Public • Published

Blockatars

Blockatars - Social Preview

React library for generating unique visual hashes. Every small change in seed will generate a vastly different image.

Blockatars internally uses the same system for generating colors as blockies, this was done to preserve some visual compatibility between library that's already widely used. Though, the color distribution may be (and likely will be) different.

Demo / Website

Usage

Install the NPM package

npm install blockatars

Use the Avatar component in your code

import { Avatar } from 'blockatar';

export const Component = () => {
  return (
    <Avatar
      seed="0x0......000" 
      size={24}
    />
  )
}

Reference

Name Required Type Description
seed string Any string to be used as a seed for the visual hashing
size number Size of the SVG element in pixels
disableLowerCase boolean Any value passed into the seed is lower-cased. This option disables that behaviour
disableNoise boolean Disables the noise that's by default applied to the avatar
disableBlur boolean Disables the blur that's by default applied to the avatar (⚠️ this generates a vastly different-looking avatar)

As seen on

logo

Are you using Blockatars? Create an issue, and your company logo might make it here!

License

React Tree List is licensed under the MIT License.

Authors

Ondřej Bárta · GitHub · website · twitter

Readme

Keywords

none

Package Sidebar

Install

npm i blockatars

Weekly Downloads

2

Version

0.4.0

License

MIT

Unpacked Size

45.9 kB

Total Files

38

Last publish

Collaborators

  • bartaxyz