Avatar
Shows a person or entity as a photo, generated initials, or name-derived palette background.
Set config.name for accessible labeling and auto-initials, or override with config.initials or config.src. Tune config.size and config.shape to match surrounding typography. Compose with PresenceBadge or CounterBadge for status overlays, and AvatarGroup for stacked participant lists.
- User lists, comment threads, and profile headers
- Entity representation when a photo is unavailable
- Compact identity markers beside names in tables and navigation
- Set
config.namefor accessible labels and auto-generated initials. - Set
config.srcwhen a profile photo is available. - Override with
config.initialsfor custom letter pairs. - Tune
config.sizeandconfig.shapeto match surrounding typography. - Named avatars default to a name-derived palette via
AvatarConfig::name(); useAvatarColor::Neutralexplicitly when needed.
Name-derived initials appear when no image is provided — the common pattern in lists and comments.
Photo avatars display the image with initials as fallback on load error.
Explicit initials override auto-generation from the display name.
Pixel size tokens align avatars with surrounding typography and layout grids.
Circular and square shapes suit profile lists and compact entity chips.
Initials fallback uses the neutral avatar surface token with a visible stroke.
Display names map to stable palette colors when color is Colorful.
Explicit palette colors for initials and icon fallback.
Brand-tinted initials for product-owned identity surfaces.
Availability dot anchored to an avatar — common in contact lists.
Numeric overlay for unread counts on avatar hosts.
Stacked avatars with overflow chip.