Avatar Group

Alignment target:@astryxdesign/core v0.7.1 · AvatarGroup

Team members
With overflow
+2

Usage #

Import the components from their dedicated entry. Structural styles are loaded automatically.

Vue
<script setup lang="ts">
import { Avatar, AvatarGroup, AvatarGroupOverflow } from '@astryx-vue/core/AvatarGroup'
</script>

<template>
  <AvatarGroup size="md">
    <Avatar name="Ana Thomas" />
    <Avatar name="Ben Lee" />
    <Avatar name="Carol Davis" />
    <AvatarGroupOverflow :count="5" />
  </AvatarGroup>
</template>

Anatomy

ElementDescription
AvatarsAvatar elements that form the overlapping row. Each can have its own props.
Overflow indicatorA "+N" circle at the end showing hidden count, or a custom AvatarGroupOverflow slot.

Best practices #

GuidancePractice
RecommendedSet size and shape on AvatarGroup so child avatars inherit them.
RecommendedPass only the avatars you want to show, and use AvatarGroupOverflow for the rest.
RecommendedWhen there are many avatars, show the most recently active or important users first.
Don'tSet different size or shape on individual avatars inside a group.
Don'tShow too many avatars. Typically show 3–5 and summarize the rest with the overflow counter.

Examples #

Avatar Group — Group

Team members
+3
Larger group
+8
Open in Playground

Overlap multiple avatars in a row to represent a group of people. Use for team lists, PR reviewers, or participant counts where you want to show faces without taking up much space.

Avatar Group — Interactive

Reviewers
Compact, static
+15
Open in Playground

A facepile whose avatars link to profiles, with an overflow indicator that opens the full member list. The whole group is one Tab stop; arrow keys move between the avatars and the overflow button.