Avatar
data-displayUser avatar with initials fallback, five size variants (xs–xl), online/offline/busy status indicators, image support, and grouped layout with overflow count. Uses role=img with aria-label.
Import
typescript
import { Avatar } from "packages/ui/src";Props
AvatarProps
| Prop | Type | Required |
|---|---|---|
src | string | No |
alt | string | Yes |
size | AvatarSize | No |
status | AvatarStatus) + AvatarGroupProps (children | No |
max | number | No |
Examples
Avatar
User avatar with initials fallback, size variants, status indicators, and grouped layout.
Sizes
With Images
Status Indicators
Online
Offline
Busy
Avatar Group
All visible
max=3 of 6
+3