Circular representations of a person or entity — showing a photo, initials, or a placeholder icon.
Five sizes from xs (16px) to
xl (96px). Match the size to the
surrounding text and control density.
A fallback chain keeps the avatar meaningful: a
src renders the photo; with no
src, the first letter of
alt; with neither, a placeholder icon.
disabled dims the avatar.
profile pictures, comment threads, user lists, team members — anywhere a person needs a visual identity.
alt with the person’s name — it becomes the accessible label.role="img" with an aria-label taken from alt (falls back to “Avatar” when empty) — always supply a meaningful alt.aria-hidden; the accessible name comes solely from alt.disabled is visual only — convey the disabled state on the surrounding interactive element too.