Avatar

User avatar with fallback initials and status indicator. Displays an image when available, falling back to initials with an optional presence status dot.

Sizes

Preview
A
B
C
D

Status Indicators

Preview
A
B
C
D

Props

PropTypeDefaultDescription
srcstring-Image source URL.
altstring-Image alt text.
fallbackstring-Fallback initials when no image is available.
size"sm" | "md" | "lg" | "xl""md"Avatar size.
status"online" | "busy" | "away" | "offline"-Status indicator displayed on the avatar.
classNamestring-Additional CSS classes.

Accessibility

  • Renders an <img> element when src is provided, with alt text for screen readers
  • Fallback initials are wrapped in an aria-label so the user identity is still announced
  • Status indicator uses aria-label to convey presence state (e.g. "online", "busy") to assistive technology
  • Passes through all standard HTML attributes including aria-* and role