Avatar

An image element with a fallback for representing the user.


Props

src

stringThe image source.

alt

stringThe image alt text.

size

numberThe size of the avatar.

fallbackDelayMs

numberUseful for delaying rendering so it only appears for those with slower connections.

Fallback

The fallback automatically renders as part of <Avatar /> when the image fails to load.
You can also use it to generate unique avatars for when a user does not have an image at all.