uibrik

Avatar Stack

New

Preview

Customize

Max4
Size40px
Overlap12px
click

Usage

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

<AvatarStack people={people} />

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.

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.