easeUI

Avatar

Round avatar in three sizes with an optional status dot. The image fades in on load and falls back to initials, and a group stacks them and fans them out on hover.

MRMaya RossLPLeo ParkASAna SilvaAK
MaMaya RossLeLeo ParkAnAna SilvaSaSam Cole+2

Hover the group to fan it out.

Installation

$ bunx --bun shadcn add @easeui/avatar

API reference

ComponentPropTypeDefaultDescription
Avatarsrc?string--
Avataralt?string-
Avatarfallbackstring-Shown while there is no image, or once it fails to load.
Avatarsize?"sm" | "md" | "lg"mdDefault "md".
Avatarstatus?"online" | "away" | "busy"-A small dot in the corner for presence. Leave unset for none.
AvatarclassName?string--
AvatarGroupchildrenReactNode-Avatars to stack.
AvatarGroupmax?number4How many to show before the rest fold into a "+N" chip. Default 4.
AvatarGroupsize?"sm" | "md" | "lg"mdMatches the avatars inside. Default "md".
AvatarGroupclassName?string--