1.0.16 • Published 2 years ago

clave-nouns-avatars v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Clave Nouns Avatars

This library helps you to use Nouns as React components in your code. There are always need for representing users unuiquely with their avatars, like Emojis in smartphones. Nouns provides a great alternative for web3 world to represent every user with different combination of Noun parts such as glasses, head, bodies, accessory and backgrounds.

Built in ETHGlobal Istanbul Hackathon for Nouns DAO as Public Good.

Example

https://codepen.io/Farhad-Asgarov/pen/YzBezJG.

Installation

npm install clave-nouns-avatars

Usage

import { NounsAvatar } from "clave-nouns-avatars";

const MyComponent = () => {
  return (
    <NounsAvatar
      size={128}
      address="0x94E9b636d0f3BDc08019B450F7f2F4Ef5b4eb2Ca"
    />
  );
};

Props

interface Props
  extends Omit<ComponentPropsWithoutRef<"div">, "dangerouslySetInnerHTML"> {
  size: number; // Size of the Avatar
  address: string; // 20 Byte Public Adress
}
1.0.16

2 years ago

1.0.15

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago