Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gitFoxCode opened this issue Apr 6, 2025 · 0 comments
Open

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

gitFoxCode opened this issue Apr 6, 2025 · 0 comments
Labels
question Further information is requested v3 #1289

Comments

@gitFoxCode
Copy link

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 gitFoxCode added question Further information is requested v3 #1289 labels Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant