1.0.3 • Published 1 year ago

connectkit-nouns v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

connectkit-nouns

Use Nouns as avatars in your ConnectKit project. Generates a fallback Noun avatar if a wallet doesn't have an ENS image. This package is a wrapper around the CLOUDNOUNS API.

Usage

First, set up ConnectKit in your project. Instructions for getting started. Then, install connectkit-nouns with your preferred package manager...

# npm
npm i connectkit-nouns

# yarn
yarn add connectkit-nouns

# pnpm
pnpm i connectkit-nouns

... and update the ConnectKitProvider.

import NounAvatars from 'connectkit-nouns';

// ...

<WagmiConfig client={client}>
  <ConnectKitProvider options={{ customAvatar: NounAvatars }}>
    <YourApp />
  </ConnectKitProvider>
</WagmiConfig>;

That's it! Now, all <Avatar /> components within your app will use Noun avatars as a fallback. See a demo React app on CodeSandbox.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago