Skip to content

Avatar Group for Angular

AngularData display

Row of overlapping avatars for the people on a record, with the overflow collapsed into ‘+N’. A named group; each avatar is named by its person and the overflow chip is announced as ‘N more’.

  • Stacked avatarsOverlapping avatars for teams, reviewers, or watchers.
  • Overflow chipBeyond the maximum, a +N chip stands for the remaining people.
  • One accessible groupThe group has a label and every person keeps a name.
  • Shared size and shapeSize and shape apply to every avatar in the group.

Behavior, design tokens, and limitations are described on the Avatar Group page; this page covers the Angular API.

import { Component } from '@angular/core';
import { AuiAvatarGroup } from '@absoluteui/angular/avatar-group';
import type { AvatarGroupItem } from '@absoluteui/components/avatar-group';
@Component({
selector: 'app-members',
imports: [AuiAvatarGroup],
template: `<aui-avatar-group label="Project members" [items]="members" [max]="3"></aui-avatar-group>`,
})
export class MembersComponent {
readonly members: AvatarGroupItem[] = [{ name: 'Ada Lovelace' }, { name: 'Grace Hopper' }, { name: 'Alan Turing' }, { name: 'Barbara Liskov' }];
}
Terminal window
npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/theme

Setup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.

import { AuiAvatarGroup } from '@absoluteui/angular/avatar-group';

Defaults for every instance: provideAbsoluteUIConfig({ components: { avatarGroup: { ... } } }) (see Configuration).

Class AuiAvatarGroup; template reference #ref="auiAvatarGroup".

Server rendering: Renders on the server; the browser re-creates it after hydration.

Input Type Default Description
label string Required. Accessible name of the group, such as ‘Project members’.
items readonly AvatarGroupItem[] Required. People: { name, src?, icon?, status? }.
max number '4' Avatars shown before the ‘+N’ chip (1 to 50).
size AvatarSize Avatar size (default: Avatar configuration).
shape AvatarShape Avatar shape (default: Avatar configuration).
locale string 'en-US' Locale of the overflow count and label.

Pattern: Named group of images: role=group with aria-label; each avatar is role=img named by its person; the overflow chip is role=img named ‘N more’.

The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Avatar Group: Accessibility and performance.