0.4.0 • Published 12 months ago

blockatars v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Blockatars

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

NameRequiredTypeDescription
seedstringAny string to be used as a seed for the visual hashing
sizenumberSize of the SVG element in pixels
disableLowerCasebooleanAny value passed into the seed is lower-cased. This option disables that behaviour
disableNoisebooleanDisables the noise that's by default applied to the avatar
disableBlurbooleanDisables 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

0.4.0

12 months ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago