Skip to content
DisplayBrowse display components
ComponentsDisplayStable

Avatar

Circular user identity. Sizes xs–xl, image fallback, group with overlap, status dot.

Live preview

ALMKRS
ALMK+5

Usage

Adapters:React stableVue stable
index.html
<div class="lm-avatar-group">
  <span class="lm-avatar lm-avatar-sm">AL</span>
  <span class="lm-avatar lm-avatar-sm">MK</span>
  <span class="lm-avatar-stack-more">+5</span>
</div>

CSS classes (5)

ClassDescription
lm-avatarBase circle
lm-avatar-{size}xs | sm | md | lg | xl
lm-avatar-groupInline-flex wrapper with overlapping margins
lm-avatar-stack-moreOverflow chip ('+5')
lm-avatar-statusBottom-right colored dot

React props (4)

PropTypeDefaultDescription
sizeSizemd
srcstringImage URL
altstringImage alt text
fallbackstringInitials when image missing

Accessibility

  • Use alt text on <img>; provide aria-label if avatar is interactive.
  • Decorative avatars can use alt='' or role='presentation'.

Spotted something wrong? Edit this entry on GitHub.