ui icon indicating copy to clipboard operation
ui copied to clipboard

[UAvatar] If the image does not exist, return text

Open gitFoxCode opened this issue 9 months ago • 0 comments

Description

Currently, when I use UAvatar and the user's photo returns a 404, it generates an <img> with the broken image icon: Image

Is there a way to make the image that returns 404 display text from the alt instead? In the documentation it says:

When no icon or text is provided, the initials of the alt prop are used as fallback

Can alt also be used as a fallback when the image is broken?

Image

Example:

Image

gitFoxCode avatar Apr 06 '25 16:04 gitFoxCode