Avatar
Avatar Stack
Overlapping avatars that spring apart on hover and show a name tooltip above the one you point at.
npx motionsnack add avatar-stackCustomize
<AvatarStack />Props
18 properties
| Property | Type | Default | Description |
|---|---|---|---|
| items | { id?: string; name: string; src?: string; href?: string; shape?: 'circle' | 'square' }[] | 7 demo people | People in the group. Without a src the initials are shown, with an href the avatar is a link. An empty array renders nothing. |
| labels | { more?: string; others?: Partial<Record<Intl.LDMLPluralRule, string>>; andMore?: string; popover?: string } | English | UI strings; {n} is a count. |
| locale | string | 'en-US' | BCP 47 locale for the name list and plural rules. |
| avatars | AvatarStackItem[] | - | Deprecated alias of items. |
| moreLabel | string | - | Deprecated: use labels.more. |
| label | string | - | Deprecated: the group label is built from the names; a value replaces it. |
| overlap | number | - | Deprecated, ignored: overlap is 25 % of the size. |
| spread | number | - | Deprecated, ignored: the group spreads 4px on hover. |
| lift | number | - | Deprecated, ignored: avatars never lift. |
| ringWidth | number | - | Deprecated, ignored: the cut-out ring is 2px. |
| ringColor | string | - | Deprecated, ignored: the ring takes the surface colour. |
| duration | number | - | Deprecated, ignored. |
| bounce | number | - | Deprecated, ignored. |
| className | string | '' | Extra classes on the root. |
| max | number | 4 | Avatars shown before the rest collapse into the +N button. |
| total | number | 0 | Total number of people, when it is larger than the list. 0 uses the list length. |
| size | '24' | '32' | '40' | '64' | '32' | Avatar size in px. |
| showTooltip | boolean | true | Name tooltip over the hovered avatar (pointer only). |
About Avatar Stack
Avatar Stack shows a row of overlapping round avatars with a ring that separates them from one another. When the pointer or keyboard focus enters the group, the avatars spread apart from the centre on a spring, and the one under the pointer rises slightly and comes to the front. A small tooltip with the person's name pops in above it and follows it as the row moves. People beyond the visible limit collapse into a +N counter, which can also show a larger total such as the size of a whole team. Avatars without an image fall back to initials, and each one can optionally link to a profile.
What's included
- Spring spread on hover and focus with adjustable distance and bounce
- Hovered avatar lifts and comes to the front
- Animated name tooltip
- +N overflow counter with an optional total
- Initials fallback and optional profile links
- Size, overlap and ring width props
- Keyboard focusable with labels for screen readers
- Type
- Animated React avatar component
- Library
- Components · Avatar
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add avatar-stack