Avatar Group
An overlapping stack of avatars that share one size and show a "+N" overflow count.
Show codeHide code
Installation
import { Avatar } from "@makeplane/propel/components/avatar";
import { AvatarGroup } from "@makeplane/propel/components/avatar-group";Usage
import { Avatar } from "@makeplane/propel/components/avatar";
import { AvatarGroup } from "@makeplane/propel/components/avatar-group";
export default function BasicDemo() {
return (
<AvatarGroup size="sm">
<Avatar alt="Ada Lovelace" fallback="AL" src="https://i.pravatar.cc/64?img=47" />
<Avatar alt="Grace Hopper" fallback="GH" src="https://i.pravatar.cc/64?img=32" />
<Avatar alt="Linus Torvalds" fallback="LT" />
<Avatar alt="4 more members" fallback="+4" />
</AvatarGroup>
);
}Examples
Sizes
size on the group sizes every avatar at once — the children don’t set it. Groups support the three Figma sizes: 2xs, xs, and sm.
Show codeHide code
Fallbacks
An avatar shows its photo when a src is available, falls back to initials when it isn’t, and finally to an anonymous person icon when no initials are given either.
Show codeHide code
Variants
Each initials avatar’s background variant is derived stably from the member’s name — there is no variant prop.
Show codeHide code
API Reference
AvatarGroup
The ready-made overlapping avatar stack: shares `size` with every `Avatar` inside via context (an avatar's own `size` still wins), composed around the styled `elements/avatar-group` container. Each `Avatar`'s own `border-subtle` is the single ring that separates them.
Avatar
The ready-made avatar: an image that falls back to initials (or an anonymous person icon), composed from the `elements/avatar` parts (`Avatar` root + `AvatarImage` + `AvatarFallback`). Pass `src` for the photo and `fallback` for initials; the initials color is chosen automatically and is not a consumer prop.