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
CNCHTP
XSSMMDLGXL
JDABCDEF404
CNCHTP+3
CNCHTP
Project TeamProps
Avatar
| Prop | Type | Default |
|---|---|---|
asChild? | boolean | - |
key? | Key | null | - |
AvatarImage
| Prop | Type | Default |
|---|---|---|
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
| Prop | Type | Default |
|---|---|---|
delayMs? | number | - |
asChild? | boolean | - |
key? | Key | null | - |