Avatar Group
An overlapping collection of avatars with an overflow summary.
An overlapping collection of avatars with an overflow summary.
Import
Section titled “Import”import { AvatarGroup } from "@zentara-co/zenos-ui";Set size once on the group. Every child Avatar and overflow control inherits it.
Shapes
Section titled “Shapes”The group also passes its shape to every child, keeping overlap and borders consistent.
Overflow
Section titled “Overflow”Use AvatarGroup.Overflow to represent hidden members. Providing onClick makes it a keyboard-accessible button.
Activate +8 to show more.
Group tooltip
Section titled “Group tooltip”Use a group tooltip when one summary describes the entire stack. Disable child tooltips to avoid competing hover targets.
Custom styling
Section titled “Custom styling”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.
Campaign team
8 collaborators
AvatarGroup.Root AvatarGroup.Overflow
API
| Prop | Type | Default | Description |
|---|---|---|---|
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-*.
Accessibility
Section titled “Accessibility”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.