Avatar Group

Overlapping avatar stack that springs apart on hover or keyboard focus, with name tooltips, online/away/busy presence dots, an optional is-typing pulse ring and a +N chip that opens the full list in a popover, plus LiveCursors: collaboration cursors with colored arrows and name labels that spring toward container-relative positions.

Preview

Avatar Group preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/avatar-group
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

AvatarGroup

items
AvatarGroupItem[]
—
max?
number

Avatars shown before the rest collapse into a "+N" chip. Default 4.

4
size?
"sm" | "md" | "lg"
md
onSelect?
((item: AvatarGroupItem) => void)

Makes avatars buttons; also used for rows in the overflow list.

—
label?
string

Accessible label for the group. Default "Collaborators".

Collaborators
className?
string
—
ringClassName?
string

Ring color separating overlapped avatars; match the surface behind.

ring-background

LiveCursors

cursors
LiveCursor[]
—
className?
string
—

Updated