Components · Data Display

Avatar

A circular picture or initials for a person or team, with an optional status dot.

Automated a11y scan passing Element: <span role="img">

Component Workbench

Switch between the live interactive preview, syntax-highlighted implementation code, copyable AI coding agent prompt, and designer anatomy blueprint.

Avatar · Canonical Spec
MCSLAR

When to use it

Do

  • Add the person's name as a text alternative.
  • Include any status in that text too.

Don't

  • Use it for generic icons or logos.
  • Rely on the dot color alone to show status.

Accessibility & Keyboard Interaction

Requirements for using this component accessibly.

TopicRequirement
Text alternativeImages need alt. Initials need role="img" and aria-label.
StatusInclude status in the accessible name.
ClickableWrap in a native button or link.

Tokens

Values update with the current theme.

RoleTokenCurrent value
Background--as-semantic-color-surface-subtle
Initials--as-semantic-color-text-default
Radius--as-radius-full
Esc
↑↓ navigateEnter openEsc close