Ballmac UI home

Avatar Stack

An accessible compact row of people with initials, image support, and an overflow count.

Design review

5 collaborators

Installation

$ pnpm dlx shadcn@latest add @ballmac/avatar-stack

Usage

import { AvatarStack } from "@/components/ballmac/avatar-stack"

The full example is in the Code tab above.

Examples

States and variants

API reference

PropTypeDefault
people*

People to display, in order.

AvatarPerson[]—
max

Maximum visible avatars before the overflow count.

number4
size

Avatar diameter.

"sm" | "default""default"

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
NoneStatic content is announced with semantic structure

Use with AI

An accessible compact row of people with initials, image support, and an overflow count. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Avatar Stack (@ballmac/avatar-stack) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Show participants or collaborators in limited space

Not for

  • Use Avatar for one person

Registry JSON: https://ui.ballmac.com/r/avatar-stack.json

Credits

Free to use in personal and commercial projects.

npm
None
Registry
shadcn/utils