Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-avatar-group.json --yes

Avatar group

Pro

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.

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

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.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-avatar-group.json --yes
PROMPT
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
OptionTypeWhat it does
sizesm | md | lg = md
max?numberHow many avatars are shown; not given (or not a whole number of none or more), all are.
total?numberHow many people there are when the children are only some of them; the count is this less the avatars shown.
more?(count: number) => stringThe words a screen reader hears for the people not shown, from their count; 4 more by default.
  • Class recipes (cva): avatarGroupStepVariants (AvatarGroup)
  • data-slot values (to select a part by): avatar-group, avatar-group-end, avatar-group-item

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.

goop.so/themes/meadow/components/avatar-group.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-avatar-group.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.