clave-nouns-avatars
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i clave-nouns-avatars

Weekly Downloads

0

Version

1.0.16

License

MIT

Unpacked Size

61.5 kB

Total Files

31

Last publish

Collaborators

  • asgarovf