Mobile › Display

AvatarGroup

Overlapping avatars with a +N count for the rest, for teams, attendees and shared items.

Installation

npx expo install plankui-mobile react-native-safe-area-context expo-haptics

Usage

import { AvatarGroup } from "plankui-mobile";

<AvatarGroup names={["Ada Park", "Ravi Menon", "Lena Ortiz", "Sam Lee", "Noor Haddad"]} max={3} />

iOS and Android

iOS: Circles ringed in the surface colour so they stay apart.

Android: The same overlapping circles.

API reference

PropTypeDefaultDescription
namesstring[]People, in order. Screen readers hear the first three and a count.
maxnumber4Avatars shown before the +N.
sizenumber32Diameter of each avatar.