Overview
AD
RM
+2
Installation
Usage
Variants
Sizes
| Size | Diameter | Use case |
|---|---|---|
xs | 20px | Dense lists, tables |
sm | 28px | Compact cards |
md | 36px | Default — sidebars, headers |
lg | 48px | Profile sections |
xl | 64px | Full profile pages |
With Status Indicator
Square Shape
AD
LG
Avatar Group
+2
API Reference
Avatar
Image URL. Falls back to
fallback initials if the image fails to load.Alt text for the image element.
Initials shown when the image is unavailable (e.g.
"AD").Avatar size. Values:
xs · sm · md · lg · xlBorder radius variant. Values:
circle · squareStatus indicator dot color. Values:
online · away · busy · offlineShows a ring border around the avatar.
Additional Tailwind classes for custom overrides.
AvatarGroup
Maximum avatars to show before displaying an overflow count.
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