Overview
AD
RM
+2
Installation
Usage
Variants
Sizes
With Status Indicator
Square Shape
AD
LG
Avatar Group
+2
API Reference
Avatar
string
Image URL. Falls back to
fallback initials if the image fails to load.string
Alt text for the image element.
string
Initials shown when the image is unavailable (e.g.
"AD").string
default:"md"
Avatar size. Values:
xs · sm · md · lg · xlstring
default:"circle"
Border radius variant. Values:
circle · squarestring
Status indicator dot color. Values:
online · away · busy · offlineboolean
default:"false"
Shows a ring border around the avatar.
string
Additional Tailwind classes for custom overrides.
AvatarGroup
number
Maximum avatars to show before displaying an overflow count.
string
default:"md"
Applies uniformly to all avatars in the group.
Accessibility
- Avatar image uses an
<img>element withalttext - When no image is provided,
role="img"andaria-labelare set with the fallback value - Status indicators have
aria-labeldescribing the status (e.g. “Online”) AvatarGroupoverflow count usesaria-labellike “+2 more users”
Do’s & Don’ts
Do
- Always provide
alttext for avatars with images - Use
fallbackinitials as a graceful degradation - Use
AvatarGroupwithmaxto cap the visible stack - Match avatar size to the surrounding content density
Don't
- Don’t use avatars as clickable buttons without additional affordance
- Don’t show status indicators unless the status is live and meaningful
- Don’t use more than 5 stacked avatars without overflow count
- Don’t crop logos or brand icons in circular avatars — use square shape