← Back to Components

Avatar

User representation component with image and initials fallback, supporting multiple sizes for various contexts

Avatar Sizes

All Size Variants

XS

XS (24px)

SM

SM (28px)

MD

MD (40px)

LG

LG (56px)

XL

XL (80px)

Five size options from extra small (24px) to extra large (80px)

Avatar with Images

Profile Images

John Doe
Jane Smith
Mike Johnson

When image prop is provided, displays profile photo with fallback to initials

Image Error Fallback Demonstration

FB
ER

Note: When an image URL fails to load, the Avatar component automatically displays the user's initials instead.

These avatars demonstrate the fallback behavior without broken image URLs.

Demonstrates automatic fallback to initials when images are unavailable

Avatar with Initials

User Initials

JD
AS
MJ
SK

Displays user initials with consistent background color and styling

Single Initial and Fallback

A
With Avatar: (no render)
No Avatar: (no render)

Handles single initials. When no image or initials are provided, nothing is rendered

Real-World Examples

Team Member List

JD

John Doe

Product Manager

AS

Alice Smith

UX Designer

MJ

Mike Johnson

Frontend Developer

Small avatars work well in lists and compact layouts

User Profile Header

JD

John Doe

Senior Product Manager

San Francisco, CA

Extra large avatars for profile pages and detailed user information

Comment Thread

SK
Sarah Kim2 hours ago

Great work on the latest design updates!

AC
Alex Chen1 hour ago

Thanks! The user feedback has been really positive.

System30 minutes ago

This is an automated message from the system.

Extra small avatars for dense layouts. System messages without avatars have text flush to the left