HTML-First UI

Avatar

A component for displaying user profile images or initials

user photo

Notes

The avatar component displays a user image, initials, or a default person icon.

  • Use the text attribute to show initials when no image is available
  • Set shape to circle (default) or square
  • Set size to small, medium (default), large, or xlarge
  • Nest an <img> inside for a photo avatar
  • Without an image or text, a default person silhouette is shown