component · messaging
Avatar
also called persona (fluent), profile picture (community), user pic (community), gravatar (community)
A small image standing in for a person or entity, falling back to initials or a generic glyph when there is no picture.
An avatar answers who at a glance, in the space of a line of text. What makes it a component rather than an image is that it is defined for the case where the picture does not exist: every mature implementation is really a small resolution chain, photo first, then initials taken from the name, then a generic glyph. The shape and size belong to the design system, not to the file, so a directory of a thousand people still reads as one column of circles no matter what anyone uploaded.
The word does not mean the picture. A thumbnail is a shrunk preview of content and is worthless without the content; an avatar stands in for an identity and works fine with nothing behind it. Fluent’s “persona” is a step wider again: an avatar plus a name, a role, and presence, so a persona contains an avatar rather than renaming one. An avatar can also stand for a company, a bot, or a repository, which is why systems that only ever say “user” tend to end up with square variants bolted on later, since an organization drawn in a circle reads as a person.
Three common names for it are borrowed from somewhere else. “Profile picture” and “user pic” name the asset, and so quietly imply the empty case is a bug rather than the main event. “Gravatar” is a product: Automattic’s service resolving an email address to a hosted image, adopted so widely in blog and forum software that people now use the brand for any avatar at all. Reach for the vendor word only when the vendor is actually involved.
For assistive technology, decide first whether the avatar is saying anything new. Next
to the person’s name it is decoration, so hide it (aria-hidden) and let the text do
the work; standing alone in a stack of collaborators it needs a real accessible name,
and that name is the person, not the letters. “AM” is a drawing of a fallback, not an
identity. Give the image an alt of the person’s name, keep that name on the element
whichever layer of the chain is currently showing, and never lean on colour alone to
tell two people apart.
Which word?
| If you want | say |
|---|---|
| a person represented by a small image | avatar |
| a small preview image of a bigger one | thumbnail |
| an account needs a face before the user provides one | identicon |
Related
See also: Avatar group · Image well · Presence indicator · Media object
Implementations
Specimens illustrate the concept; for production use, start here.
| fluent | Avatar |
| polaris | Avatar |
| radix | Avatar |
| base-ui | Avatar |
| shadcn | Avatar |