JSPM

connectkit-nouns

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q36522F
  • License MIT

Use Nouns as avatars in your ConnectKit project

Package Exports

  • connectkit-nouns

Readme

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.