Components
Avatar
Container for a user or entity avatar; compose an AvatarImage and AvatarFallback inside, and the fallback shows automatically when the image is missing or fails to load.
Usage
Best practices
Always render an
AvatarFallbackchild - it is what shows while the image loads and whensrcis missing or errors; an image-only avatar renders empty on failure.Give
AvatarImagea meaningfulalt; the visual is decorative only when the fallback initials already convey the identity.Keep the default
radius="full"for people; use a squaredradiusfor brand/entity logos so they read as objects, not users.
Props
Avatar
AvatarBadge
AvatarFallback
AvatarGroup
AvatarImage
AvatarStatus
Also exports
- const
AVATAR_SIZE_CLASS - const
AVATAR_SIZE_PX - type
AvatarExtendedSize - type
AvatarGroupVariant - type
AvatarSize
Composition
Builds on
Used by