bento-design-system icon indicating copy to clipboard operation
bento-design-system copied to clipboard

Support images in Avatar

Open gabro opened this issue 2 years ago • 0 comments

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

gabro avatar Jul 15 '22 08:07 gabro