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-hapticsUsage
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
| Prop | Type | Default | Description |
|---|---|---|---|
| names | string[] | People, in order. Screen readers hear the first three and a count. | |
| max | number | 4 | Avatars shown before the +N. |
| size | number | 32 | Diameter of each avatar. |