Black Friday: 30% off Pro

Get 30% off

Updated

Avatar Stack

Preview

Customize

Max4
Size40px
Overlap12px
click

Installation

npx shadcn@latest add https://uibrik.com/r/avatar-stack.json
Adds the files to components/uibrik/avatar-stack and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/avatar-stack.

Usage

import { AvatarStack } from "@/components/uibrik/avatar-stack/avatar-stack";​const people = [  { id: 1, name: "Maya Chen", role: "Design lead", src: "/registry/avatar-stack/maya.svg" },  { id: 2, name: "Jonas Weber", role: "Engineering", src: "/registry/avatar-stack/jonas.svg" },  // …4 more];​<AvatarStack  people={people}  max={4}  size={40}  overlap={12}  trigger="click"/>

Where to use Avatar Stack

  • Document collaborators

    Overlapping faces show who is on a file in little space, and fan out on hover to name each person.

    Pairs with Live Cursors

  • Team rows in lists

    A compact stack fits inside a project or table row, and the card that grows out of it lists everyone.

    Pairs with Data Table

  • Social proof

    A row of real faces beside a sign-up form says that other people already use the product.

    Pairs with Waitlist Input

Props

AvatarStack
max
Type number
4
Avatars shown in the row before the +N.
size
Type number
40
Avatar diameter.
overlap
Type number
12
How far each avatar tucks under the one before it.
trigger
Type "click" | "hover"
"click"
What opens the list.
peoplerequired
Type { id; name; role?; src? }[]
–
Avatars in order. Without a src the initials show.
className
Type string
–
Classes for the wrapper.