Components · Data Display · Avatar
Back to Avatar typesAvatar
Use to represent a person throughout the product - in a profile menu, a comment, a team list or an assignee indicator - one Avatar component, controlled by properties, not separate one-off circles.
Properties
Size, shape and initials text are properties of the same component, not separate avatars - change them below to check this avatar's types and presence states in the Live Preview.
Live Preview
All 3 content types compared side by side, each in all 4 presence states - Initials, Icon and Image placeholder, with no status dot, or an Online, Away or Offline dot in the bottom-right corner, at the chosen Size and Shape.
Avatar.Group
A short overlapping stack for a list of people at a glance - a comment thread's participants, a document's collaborators. Once the set exceeds a max count, the last tile becomes a real avatar-shaped "+N" instead of growing the row further; hover it to see who's hidden.
When to use
Anywhere a person needs a compact, recognizable visual identifier.
Component Guide
Overview
Avatar represents a person throughout the product - in a profile menu, a comment, a team list, or an assignee indicator - a compact circular (or square) visual identifier shown as an image, initials, or a generic icon placeholder.
When to Use
- A user profile menu or comment author - identifying who's associated with an action or piece of content.
- A team member list or an assignee indicator - showing who's involved at a glance.
- A chat participant list - compact identification across many people at once.
When Not to Use
- Representing something that isn't a person or team - use Image or an icon instead - Avatar specifically implies identity.
- A context where a full name is more useful than a small visual - pair Avatar with a name rather than relying on the image alone when precision matters.
- A large, detailed profile photo display - use Image - Avatar is built for small, compact identification, not a full photo viewer.
Best Practices
- Fall back to initials or a generic icon gracefully when no photo is available, rather than showing a broken image.
- Keep sizing consistent within any one context (all comments the same avatar size, for example).
- Use the presence/status dot sparingly and only when online/away/offline genuinely matters in that context.
Do and Don't
Do
Two solid initials at a size that stays legible, with presence shown as a small status dot rather than competing text.
Don't
A full name crammed into a 40px circle is unreadable at any size. Avatars carry one or two initials - use a name label beside it for the rest.
Accessibility
- Carries an accessible name identifying the person ("Jordan Lee's avatar" or simply the person's name), not left unlabeled.
- A presence dot's meaning (online/away/offline) is exposed in text or an accessible label, not communicated by color alone.
- Initials fallback text meets sufficient contrast against its background circle.
Related Components
Badge, Image, List.
{
"component": "Avatar",
"category": "Data Display",
"summary": "Avatar represents a person throughout the product - in a profile menu, a comment, a team list, or an assignee indicator - a compact circular (or square) visual identifier shown as an image, initials, or a generic icon placeholder.",
"whenToUse": [
"A user profile menu or comment author - identifying who's associated with an action or piece of content.",
"A team member list or an assignee indicator - showing who's involved at a glance.",
"A chat participant list - compact identification across many people at once."
],
"whenNotToUse": [
"Representing something that isn't a person or team - use Image or an icon instead - Avatar specifically implies identity.",
"A context where a full name is more useful than a small visual - pair Avatar with a name rather than relying on the image alone when precision matters.",
"A large, detailed profile photo display - use Image - Avatar is built for small, compact identification, not a full photo viewer."
],
"bestPractices": [
"Fall back to initials or a generic icon gracefully when no photo is available, rather than showing a broken image.",
"Keep sizing consistent within any one context (all comments the same avatar size, for example).",
"Use the presence/status dot sparingly and only when online/away/offline genuinely matters in that context."
],
"doAndDont": {
"do": "Two solid initials at a size that stays legible, with presence shown as a small status dot rather than competing text.",
"dont": "A full name crammed into a 40px circle is unreadable at any size. Avatars carry one or two initials - use a name label beside it for the rest."
},
"accessibility": [
"Carries an accessible name identifying the person (\"Jordan Lee's avatar\" or simply the person's name), not left unlabeled.",
"A presence dot's meaning (online/away/offline) is exposed in text or an accessible label, not communicated by color alone.",
"Initials fallback text meets sufficient contrast against its background circle."
],
"relatedComponents": [
"Badge",
"Image",
"List"
]
}