Avatar
User images that fade in once loaded, with initials fallback, presence status and stacked groups.
Data DisplayRadix Avatar
LMNKSO
Playground
Tweak the props, the preview and the code follow.
LM
Props
4
<Avatar size="lg"> <AvatarImage src="/lea.png" alt="Léa" /> <AvatarFallback>LM</AvatarFallback> <AvatarStatus status="online" /> </Avatar>
Installation
npx @plumsydev/plum-ui add avatarUsage
import { Avatar, AvatarFallback, AvatarImage, avatarGradient } from "@/components/ui/avatar"<Avatar>
<AvatarImage src="/avatar.png" alt="Léa Martin" />
<AvatarFallback>LM</AvatarFallback>
</Avatar>Examples
Group
Hover the stack — it fans out. max collapses the rest into a counter.
ARJBMCTD
Hover the group to fan it out
Sizes
ACACACACAC
Generated avatars
avatarGradient(seed) returns a unique, stable gradient as a data URI — no network request.
LOwner
Léa Martin
lea@acme.com
NAdmin
Noah Kim
noah@acme.com
IMember
Ines Duarte
ines@acme.com
API Reference
Avatar
| Prop | Type | Default |
|---|---|---|
sizeDiameter, from 24 to 64px. | "xs" | "sm" | "default" | "lg" | "xl" | "default" |
AvatarFallback
| Prop | Type | Default |
|---|---|---|
delayMsWait before showing the fallback, avoids a flash on fast connections. | number | — |
AvatarStatus
| Prop | Type | Default |
|---|---|---|
statusPresence dot color. | "online" | "busy" | "away" | "offline" | "online" |
AvatarGroup
| Prop | Type | Default |
|---|---|---|
maxMaximum avatars shown before a +N counter. | number | — |
Notes
avatarGradient(seed: string)generates a placeholder image from any string, ideal for users without a photo.AvatarStatussits outside the clipped circle — addoverflow-visibleto the Avatar androunded-fullto the image.