Avatar
Avatar component with 5 sizes (xs/sm/default/lg/xl), image/fallback/icon types, AvatarBadge for status dots or icons, and AvatarGroup with AvatarGroupCount for displaying multiple avatars.
Import
Live Demo
Avatar sizes, badge states, and group compositions.
Image — all sizes (xs / sm / default / lg / xl)
CN
CN
CN
CN
CNImage + Status Badge (green dot)
CN
CN
CN
CN
CNImage + Icon Badge
CN
CN
CN
CN
CNFallback — all sizes
Fallback — shuffled card colors (background + text seeded by initials)
Fallback — color is stable per initials across sizes
Avatar Group — fallback-only members (shuffled colors)
Icon Fallback — all sizes
Avatar Group (3 avatars)
CN
VC
SDAvatar Group + Count (+3)
CN
VC
SDAvatar Group + Add Icon
CN
VC
SDAvatar Form Field (avatar + change photo)
CNProps
| Name | Type | Default | Description |
|---|---|---|---|
| size | "xs" | "sm" | "default" | "lg" | "xl" | "default" | The size of the avatar |
Examples
With Image
Fallback Only
Shown when the image fails to load or isn't provided.
With Status Badge
Add a status indicator or custom icon badge.
Avatar Group
Display multiple avatars with overflow count.