v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS

AvatarGroup

A compact group of people with a visible overflow count.

Interactive preview

+2

Usage

import { AvatarGroup, Avatar } from "@devvy-ui/react";

<AvatarGroup label="Project contributors" max={2}>
  <Avatar name="Ada Rivera" /><Avatar name="Bea Cruz" /><Avatar name="Cal Lee" />
</AvatarGroup>

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
labelstringrequiredName of the group.
maxnumberall childrenMaximum displayed children; remaining count is shown.

Accessibility & behavior

Platform Behavior & Guidelines

Compose Avatar children. The overflow reports a count, not a directory of hidden names; provide a separate people list when that information is needed. Native div props and refs are preserved.

Source ownership

Run npx @devvy-ui/cli init once in your React project, then add the source:

npx @devvy-ui/cli add avatar-group

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

AvatarGroup.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.