Components
← All components

Avatar

stimeo--avatar

Shows a user's picture and swaps in the fallback you prepared when it cannot load.

  • Core

Shows a user's picture, and swaps in the fallback you prepared when the image fails or no image was given. Whether it is empty, loading, loaded or failed is readable from CSS, so the waiting state can be styled too. The name lives on the outer frame while the image and the fallback are kept out of the reading order, so a screen reader says the name once whichever side is showing. Shape, size and colour are this demo's CSS. Generating initials or picking colours is not part of it.

running
Loads successfully (image shown)
Load fails → initials (the console 404 is intentional)
No image target → initials immediately

Keyboard

This component has no keyboard interactions of its own.