Avatar group
Overlapping members with optional live presence, animated membership, overflow and member inspection.
npx @swipeui/cli add avatar-groupWhen to use it
- Showing who's in a team, a chat or an event with overlapping avatars.
- "Going" or "Shared with" rows on cards.
- Compact lists of collaborators with a +3 overflow count.
When not to use it
- Live presence that changes often. Use Presence stack.
- One person. Use Avatar.
- A full member list. Use List row with Avatar.
Installation
Installs with a Pro licence
Everything on this page is public except the source. Founder pre-sale opens around 5 January 2027.
Usage
import { AvatarGroup } from '@/components/swipeui/ui/avatar-group';
<AvatarGroup people={members} />;API reference
| Prop | Type | Default | Description |
|---|---|---|---|
people | | — | Live identities in caller-owned order. |
size? | | | Avatar diameter role. |
overlap? | | | Overlap in points. |
ringClassName? | | | Surface-matched separation rings. |
animateEntrance? | | | Animate newly visible identities. |
animateExit? | | | Animate identities leaving. |
animateLayout? | | | Animate position changes. |
onOverflowPress? | | — | Independent overflow action. |
haptics? | | | Overflow feedback. |
messages? | | — | Built-in text overrides. |
maxVisible? | | | Maximum visible identities. |
accessibilityLabel? | | — | Group summary; defaults to names. |
motion? | | — | Shared entry/reflow character. |
className? | | — | Root classes. |
style? | | — | Root layout escape hatch. |
testID? | | — | Root identifier. |
Composition and behavior
- people each have an id, name and optional photo.
- maxVisible caps avatars (4); size matches Avatar sizes.
Pro Avatar Group combines member collections and live presence in one item. Omit each person’s status for plain membership. Presence Stack is now an unlisted compatibility name.
Behavior and gestures
- Static; wrap it in Pressable to open a member list.
- Shows up to four avatars by default, then a +N count for the rest.
Accessibility
- Read as one group with everyone's names, or your accessibilityLabel such as "Ana, Ben and 3 others".
- Individual avatars and the count are hidden to avoid a long, repetitive readout.
- The overflow count is truthful to the number you pass.
Motion
- Uses the
listandpressmotion roles, so it follows your app's feel. Passmotionto tune this one instance. - Independent entry, exit and layout motion; respects reduced motion.
Performance
- Renders at most maxVisible avatars.
Notes for AI
- Give people unique ids and names; pass a short accessibilityLabel for big groups.
Compatibility
| Runs on | Supported |
|---|---|
| Expo SDK 57 | Yes |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | Yes |
| Expo Go | Yes |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.