Export EmojiAvatar component and emojiAvatarForAddress utility #2491
drichelson
started this conversation in
Ideas
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The EmojiAvatar component and emojiAvatarForAddress utility function are currently internal and not exported from the main package, making it impossible to reuse RainbowKit's avatar logic in custom components.
Use Case
I want to display consistent emoji avatars outside of RainbowKit's built-in components (e.g., in a user list, profile cards, etc.) using the same address-to-emoji mapping that RainbowKit uses internally.
Proposed Solution
Export the following from the main package:
Current Workaround
Currently, the only way to access this functionality is to copy the implementation or access it through custom avatar components via AvatarComponent, which doesn't provide the standalone utility function.
Beta Was this translation helpful? Give feedback.
All reactions