Ethereal Garden

Avatar

An image element with a fallback for representing the user.

When To Use

Use avatars to represent a user or entity. They're useful for:

  • User profiles
  • Account menus
  • Comment sections
  • Chat interfaces
  • User lists
  • Team members displays

Avatars provide a visual representation of users and can help make interfaces more personable and engaging.

Examples

Basic

CNCHTP

Sizes

XSSMMDLGXL

Fallback

JDABCDEF404

Group

CNCHTP+3
CNCHTP
Project Team

Props

Avatar

PropTypeDefault
asChild?
boolean
-
key?
Key | null
-

AvatarImage

PropTypeDefault
onLoadingStatusChange?
((status: ImageLoadingStatus) => void)
-
asChild?
boolean
-
width?
string | number
-
useMap?
string
-
srcSet?
string
-
src?
string
-
sizes?
string
-
referrerPolicy?
HTMLAttributeReferrerPolicy
-
loading?
"eager" | "lazy"
-
height?
string | number
-
fetchPriority?
"auto" | "high" | "low"
-
decoding?
"async" | "auto" | "sync"
-
crossOrigin?
CrossOrigin
-
alt?
string
-
key?
Key | null
-

AvatarFallback

PropTypeDefault
delayMs?
number
-
asChild?
boolean
-
key?
Key | null
-