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

Support images in Avatar #275

Open
gabro opened this issue Jul 15, 2022 · 0 comments
Open

Support images in Avatar #275

gabro opened this issue Jul 15, 2022 · 0 comments

Comments

@gabro
Copy link
Member

gabro commented Jul 15, 2022

Avatar should accept an optional imageSrc prop.

It would be cool if we could show the default icon (or initial, depending on whether username is set or not) while the image is loading or if the image fails loading (possibly because the url is wrong or unreachable)

I think it may be achievable by using an <object> tag and nesting the fallback in it, but I haven't explored it much

@Reggionick Reggionick self-assigned this Jul 19, 2022
@Reggionick Reggionick linked a pull request Jul 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

2 participants