Overlapped avatars with presence dots that spread on hover, focus or tap, a hover card that grows out of each avatar and a +N pill that stretches into the hidden names.
Hover meTap me
Pricing page brief
Editing now · saved just now
Sam Ortiz, Priya Shah, 2 moreand 1 moreand 0 more
Goals
Ada is typing
Move Starter teams to annual billing without raising the entry price.
Pricing
Ravi is typing
Starter stays at €12 per seat. Annual billing takes two months off.
FAQ
Seats can be added at any time and are prorated to the day.
avatar-group · , lively
avatar-group-demo.tsx
When to use
Use it to show who is on a record, with online/away/busy dots, a hover card per person and the overflow as a +N count. The stack keeps its narrow width, so table columns never reflow.
When not to use
For a single person use a plain avatar. For an editable list of people use Combobox or Tag Input.
Show who is on a record (assignees, reviewers, people editing a document right now) in table cells, page headers and cards, with the overflow as a "+N" count and every name on demand. The stack keeps its narrow width in the layout and spreads over its surroundings, so a table column never reflows. For a single person use an avatar on its own; for an editable list of people use a combobox or tag input.
Give an item a status (online, away, busy, offline) and it gets a dot in the StatusBadge tone colours, ringed in background so it reads on any neighbouring avatar; offline is a hollow ring. Online dots breathe slowly (the StatusBadge live pulse, 2.4 s), only while the group is on screen and the tab is visible; turn it off with breathe={false}. A status change pops the new tone in. Hovering or focusing an avatar opens a card that grows out of the ball: the name, then role, then the presence and activity ("Online · Editing Pricing"). Without those fields the card is the plain name. The card is a tooltip: put actions on the avatar itself with onItemClick or href.
Pick a layout with preset: stack (overlapped, spreads on hover, focus or tap), row (always spread, names as tooltips) or grid (a wrapping member list, names under each avatar at lg). temperament changes only how the spread and the names pill move. By default (anchor="auto") the stack opens toward the side of its parent with more room and the names pill never grows past the parent; force a side with anchor="start" or anchor="end". In table cells use size="xs": the spread uses the calm spring and the counter shows only the count.
The root is a role="group" named by label plus the count ("Assignees, 7 people").
Each avatar is a button (with onItemClick), a link (with href) or an image role, named by the person's name plus the presence ("Ada Park, Online"); the initials, the image and the status dot are aria-hidden.
The hover card is a Radix tooltip: it opens on hover and on keyboard focus, and its role and activity are the avatar's accessible description. It holds no controls.
The "+N" counter is a button with aria-expanded and aria-controls pointing at the list of hidden names. In xs table cells it is plain text with the names in screen-reader text.
Membership changes are announced in a polite live region ("Support added"); the spread is not announced.
Initials and the count are foreground on muted (AA in both themes); a 2 px background ring separates overlapping avatars.
On touch the first tap spreads the stack and never activates a half-hidden avatar; a tap outside closes it.
The stack still opens into a row so every avatar gets its full target, but it glides in the short fade time: no sink, no lift (the hovered avatar's shadow still deepens). The hover card fades in at full size, presence dots stay still and swap tone with a fade, the names pill appears at full width with a fade, names fade in without moving, the count crossfades instead of rolling, and members entering or leaving fade.
The only thing that runs at rest is the slow breath of online dots, a transform/opacity loop that stops off screen, in hidden tabs, with reduced motion and with breathe={false}; one visibility observer serves the whole group. The spread and the pill are transform and width animations on a handful of elements, started by the person. Widths are measured once and on resize with a ResizeObserver. Tooltip content mounts only when open.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, @radix-ui/react-avatar, @radix-ui/react-tooltip, motion.
Dependencies
@radix-ui/react-avatar · peer
@radix-ui/react-tooltip · peer
motion · peer
Triggers
hover, keyboard focus, press, a value change
Reduced motion
The stack opens in the short fade time with no sink or lift, the hover card and names pill fade in at full size, presence dots stay still and swap tone with a fade, and the count crossfades.
Keyboard
Tab / Shift+Tab
Enter or leave the group (one tab stop); the stack spreads on entry and closes on leave
ArrowRight / ArrowLeft
Next or previous avatar, then the +N counter, then the add button
Home / End
First avatar / last control
Enter / Space
Activate the focused avatar, or open and close the names pill on +N
Escape
Close the names pill, then close the spread
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)