Skip to content
SevenUI
Sign in
On this page

Avatar

An image element with a fallback for representing the user, built on the Base UI Avatar primitive, with initials when the image fails.

EC7UJL

Installation

Bash

Usage

Examples

Group

AvatarGroup stacks avatars with overlap and background rings; AvatarGroupCount renders the overflow counter. Sizes inside the group follow the avatars’ size.

ECJLSR
+3

API reference

Avatar

Extends the Base UI Avatar Root — all its props apply.

PropTypeDefault
size"default" | "sm" | "lg""default"

AvatarImage and AvatarFallback

Extend the Base UI Image and Fallback parts. The image swaps to the fallback on load failure; AvatarFallback accepts a delay prop (ms) to avoid flashing it while the image loads.

AvatarBadge

Extends span. A status dot pinned to the bottom-right corner, sized automatically per avatar size (fits a small icon on default/lg). Color it with className and label it with aria-label.

AvatarGroup and AvatarGroupCount

Structural wrappers extending div — the group overlaps its avatars, the count renders a same-sized circle for the “+N” overflow.

Was this page helpful?