Skip to content
v2.5.0
English
Русский
Documentation

AvatarStack

AvatarStack is a compound component for overlapping avatar groups such as participants, reviewers, and team previews.

Root Props

PropTypeDefault
refRef<HTMLDivElement>—
Ref forwarded to the root div element of the avatar group. Useful for direct DOM access (e.g., measuring width or attaching listeners).
sizeAvatarGroupSize'md'
Size of all avatar items within the group. Ensures consistent sizing across all items.
variantAvatarGroupVariant'primary'
Variant for all avatars in the group. Applies a unified visual style (e.g., primary, secondary).

Also accepts all <div> attributes.

Child Parts

  • AvatarStackItem: stack-aware avatar item.

AvatarStackItem

PropTypeDefault
refRef<HTMLDivElement>—
Ref forwarded to the root div element of the avatar. Enables access to the DOM node, e.g., for focus or measurements.
sizeAvatarSize—
Defines the size of the avatar. Affects both the container and any nested content (image, initials, etc.).
variantAvatarVariant—
Visual variant of the avatar. Can be used to differentiate between roles, types, or contexts. 'primary': Default visual style; 'secondary': Alternate or less prominent style

Also accepts all <div> attributes.

Types

  • AvatarGroupProps
  • AvatarGroupStackItemProps
  • AvatarGroupSize
  • AvatarGroupVariant

State Model

  • AvatarStack has no controlled state.
  • Size and variant are shared to child avatars through context.