ambassify / react-avatar

Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user.
MIT License
643 stars 117 forks source link

initials function #222

Closed everAtWork closed 3 years ago

everAtWork commented 3 years ago

hello there, I'm stuck trying to implement the initials function to make avatars based on the first letter of name that comes from a JSON... could you please help? I've read the description but it was of little help (at least to me)

everAtWork commented 3 years ago

I've been looking for an example of usage of ConfigProvider with initials but could'nt find any.. I believe that's what I need.

JorgenEvens commented 3 years ago

Hi @everAtWork,

I'll get back to you with an example later today.

everAtWork commented 3 years ago

@JorgenEvens right.. 👍🏼

JorgenEvens commented 3 years ago

Hi @everAtWork,

Not sure where you are having issues with as the method works exactly as described in the documentation: Example.