Avatar Group

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

AvatarGroup Props #

NameTypeDefaultDescription
sizeAvatarSize'md'Uniform size for all avatars in the group: a named size or one of the numeric pixel values AvatarSize lists. It always overrides each child Avatar's own size, including when the group uses its default.
shapeAvatarShape'circle'Uniform shape for all avatars in the group.

AvatarGroupOverflow Props #

NameTypeDefaultDescription
countnumber-Number of hidden avatars, displayed as +N.
NameDescription
clickFired when the indicator is clicked. With a listener the indicator becomes a focusable button instead of a static figure.

The default slot replaces the +N text, for wordings such as 12+.

Slots #

NameDescription
defaultAvatar elements, optionally ending with an AvatarGroupOverflow.

Native attributes #

The root element is a <div role="group">.

The following are passed to the root element:

  • HTML attributes.
  • aria-* attributes.
  • data-* attributes.
  • class.
  • style.