StartFoundationsComponentsContent

Avatar group

An avatar group shows a few overlapping avatars and a "+N" button that lists the rest.

Stable Figma
OverviewUsageAPIAccessibility
<tk-avatar-group label="4 collaborators">
  <tk-avatar shape="circle" name="Mira Petrova"></tk-avatar>
  <tk-avatar shape="circle" name="Ola Nordmann"></tk-avatar>
  <tk-avatar shape="circle" name="Sam Lee"></tk-avatar>
  <tk-avatar name="Acme Corp"></tk-avatar>
</tk-avatar-group>

Anatomy

Part What it is
tk-avatar-group the row; a named group when label is set
default slot the tk-avatar faces; the first one is on top
ring a 2px ring around each face, in the page color
"+N" button appears when the faces exceed max; opens a Popover with the hidden names
overflow slot optional content for the popover, instead of the name list

Overflow

<tk-avatar-group max="5" label="8 collaborators">
  <tk-avatar shape="circle" name="Mira Petrova" color="blue"></tk-avatar>
  <tk-avatar shape="circle" name="Ola Nordmann" color="pink"></tk-avatar>
  <tk-avatar shape="circle" name="Sam Lee" color="green"></tk-avatar>
  <tk-avatar shape="circle" name="Jo Kim" color="indigo"></tk-avatar>
  <tk-avatar shape="circle" name="Al Roy" color="teal"></tk-avatar>
  <tk-avatar shape="circle" name="Bea Fox" color="orange"></tk-avatar>
  <tk-avatar shape="circle" name="Cy Ng" color="purple"></tk-avatar>
</tk-avatar-group>
  • max counts every tile, including "+N". With more faces than max, the group shows max − 1 faces and a "+N" tile, so "+N" always hides at least two.
  • N is the number of hidden faces. To show a larger total, such as "200 members", write it as text next to the group.
  • The "+N" button opens a popover that lists the hidden faces with their names. The rows aren't commands. For rows that link somewhere, put your own content in the overflow slot.

Sizes

<tk-avatar-group size="24" label="3 reviewers">
  <tk-avatar shape="circle" name="Mira Petrova"></tk-avatar>
  <tk-avatar shape="circle" name="Ola Nordmann"></tk-avatar>
  <tk-avatar shape="circle" name="Sam Lee"></tk-avatar>
</tk-avatar-group>

size takes the Avatar sizes, 20 to 64, default 32. The group sets it on every face and on "+N"; a size on a face inside a group is ignored. The overlap is about a third of the size.

Shapes

Each face keeps its own shape, so people (circles) and bots or organizations (squares) can share a row. The group has no shape. "+N" is always a rounded square. See the shape rule.

Badges on faces are hidden inside a group.