CN
JD
AS
MN
A
B
+2
Installation
CLI
Install the component using the StarUI CLI:
star add avatarExamples
Basic Avatar
Simple avatar with image
CN
Sizes
Avatars in different sizes
XS
SM
MD
LG
XL
2X
Fallback
Avatar with initials fallback
CN
JD
AB
Automatic Fallback
Automatically extract initials from name
CN
Valid URL
IN
Invalid URL
NI
No URL
Avatar Group
Display multiple avatars together
JD
AS
PQ
+2
With Badge
Avatar with status badge
JD
AS
PQ
MN
Colored Initials
Avatars with colored backgrounds
JD
AS
PQ
MN
XY
API Reference
| Component | Description |
|---|---|
Avatar |
Main avatar container |
AvatarImage |
Image displayed in avatar |
AvatarFallback |
Fallback content when image fails or loads |