10.7k

Avatar

An image element with a fallback for representing the user.

API Reference

Installation

Usage

Use keepMounted when the image relies on native lazy loading or an optimized image component. The fallback remains visible while the image loads or if it fails:

API Reference

Avatar

Root component. Styled wrapper for Avatar.Root from Base UI with default size of 32px (8 units) and rounded-full styling.

AvatarImage

Image element for the avatar. Styled wrapper for Avatar.Image from Base UI with support for keepMounted images.

AvatarFallback

Fallback content displayed when the image fails to load. Styled wrapper for Avatar.Fallback from Base UI with muted background.

Examples

Fallback Only

Different Sizes

Different Radius

Group Avatars

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).