Free
Pro

Avatar Group

Stacks multiple avatars with overlapping borders and shows an overflow count badge when items exceed the max limit. Accepts image URLs or text initials as fallback.

free

Basic Avatar Group

Pass an array of AvatarGroupItem objects. Each item can have an avatarUrl, initials, and name.

Alice
Bob
Carol
Dan
+3

Sizes

Control avatar size with the size input: xs, sm, md, lg, xl.

xs
Alice
Bob
Carol
Dan
+3
sm
Alice
Bob
Carol
Dan
+3
md
Alice
Bob
Carol
Dan
+3
lg
Alice
Bob
Carol
Dan
+3
xl
Alice
Bob
Carol
Dan
+3

Overflow Count

Set max to limit visible avatars. The remaining count is shown as a +N chip.

Alice
Bob
Carol
+4
Alice
Bob
Carol
Dan
Eve
+2
Alice
+6

Initials Fallback

If avatarUrl is omitted, the component shows initials or the first letter of name.

AB
CD
E

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add avatar-group

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add avatar-group
// Paths are relative to aliases.components (default: src/app/components)
import { AvatarGroupComponent } from './avatar-group/avatar-group.component';

@Component({
  selector: 'app-your-component',
  imports: [
    AvatarGroupComponent
  ],
  template: `...`
})
export class YourComponent {}

API for avatar-group — generated from JSDoc in the library source.

API reference for avatar-group
APIMemberTypeDefaultDescription
ply-avatar-groupclassstring''Additional host CSS classes (merged via cn()).
ply-avatar-groupitemsAvatarGroupItem[][]
ply-avatar-groupmaxnumber4
ply-avatar-groupsizeAvatarSize'md'