---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Avatar group

A row of people's avatars, each against the one before it, for who is on a project or in a thread, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `AvatarGroup`.

## Try it

Add and take away people, cap how many show (the rest fold into "+N"), say how many there are in all, and switch the size.

The people are ours, shown by their initials.

## When to use

- A row of people's avatars, each against the one before it, for who is on a project or in a thread.

## When not to use

- For one person use Avatar.

## Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Avatar group on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-avatar-group.json --yes
```

```text
Add the Goop Avatar group to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { Avatar } from '@/components/ui/goop/avatar';
import { AvatarGroup } from '@/components/ui/goop/avatar-group';

const PEOPLE = ['Mira Okafor', 'Omar Haddad', 'Rosa Lind', 'Ada Moreau', 'Leon Varga'];

function StudyPeople({ people = PEOPLE }: { people?: string[] }) {
  return (
    <AvatarGroup aria-label="People on this study" size="sm" max={3} total={people.length}>
      {people.map((person) => (
        <Avatar key={person} variant="solid" name={person}>
          {person}
        </Avatar>
      ))}
    </AvatarGroup>
  );
}
```

- width, corner: add no class for these.

## API reference

### Options

- `size: sm | md | lg = md`
- `max?: number` — How many avatars are shown; not given (or not a whole number of none or more), all are.
- `total?: number` — How many people there are when the children are only some of them; the count is this less the avatars shown.
- `more?: (count: number) => string` — The words a screen reader hears for the people not shown, from their count; `4 more` by default.

## Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

## Related

- [Avatar](/themes/meadow/components/avatar): A person's or a team's picture or initials, beside their name or on its own.
- [Identity](/themes/meadow/components/identity): A person as an avatar beside their name and an email or a role.
- [Card](/themes/meadow/components/card): A framed surface that holds one piece of content, a list of rows or a section's words.
- [Card grid](/themes/meadow/components/card-grid): A grid that sets several cards out in even columns that wrap with its width, for projects, files or features.
