StarForge
Display

Avatar

Versatile avatar components with fallbacks and size variations

Note

All presented components are responsive and compatible with Tailwind CSS. Make sure Tailwind is configured in your project to use them.

Dynamic Avatars

Props Reference

PropTypeDescriptionDefault
namestringUser name for generating initials and alt text'John Doe'
avatarstringURL of the user's profile imageundefined
status0 | 1 | 2 | 3User status: 0=Offline, 1=Online, 2=Away, 3=Busyundefined
verifiedbooleanWhether the user has verified badgefalse
sizestringAvatar size using Tailwind classes (e.g., size-14)'size-14'
classNamestringAdditional CSS classes for stylingundefined

Status Values:

  • 0: Offline (gray indicator)
  • 1: Online (green indicator)
  • 2: Away (yellow indicator)
  • 3: Busy (red indicator)