Skip to content
Playground

Avatar Group

An overlapping collection of avatars with an overflow summary.

An overlapping collection of avatars with an overflow summary.

ADMCSO
TSX
import { AvatarGroup } from "@zentara-co/zenos-ui";

Set size once on the group. Every child Avatar and overflow control inherits it.

ADMCSO
ADMCSO
ADMCSO

The group also passes its shape to every child, keeping overlap and borders consistent.

ADMCSO
ADMCSO
ADMCSO

Use AvatarGroup.Overflow to represent hidden members. Providing onClick makes it a keyboard-accessible button.

ADMCSO

Activate +8 to show more.

Use a group tooltip when one summary describes the entire stack. Disable child tooltips to avoid competing hover targets.

ADMCSO+2

Style the group surface with className, then use stable slots to coordinate child Avatar borders, fallbacks, and AvatarGroup.Overflow. Size, shape, overlap, accessible group naming, and roving focus behavior remain owned by the component.

ADMCSO+5

Campaign team

8 collaborators

AvatarGroup.Root
AvatarGroup.Overflow

API

PropTypeDefaultDescription
size AvatarSize md Size inherited by child avatars.
shape AvatarShape circle Shape inherited by child avatars.
tooltip string — Optional tooltip describing the whole group.
count number — Number of hidden avatars represented by AvatarGroup.Overflow.
native props React.HTMLAttributes<HTMLDivElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Give every group an accessible name. Interactive avatars and overflow controls use roving focus with Left, Right, Home, and End navigation. Keep every Avatar’s name meaningful even when initials are visually sufficient.