Root Props
| Prop | Type | Default |
|---|---|---|
ref | Ref<HTMLDivElement> | — |
Ref forwarded to the root div element of the avatar group. Useful for direct DOM access (e.g., measuring width or attaching listeners). | ||
size | AvatarGroupSize | 'md' |
| Size of all avatar items within the group. Ensures consistent sizing across all items. | ||
variant | AvatarGroupVariant | '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
| Prop | Type | Default |
|---|---|---|
ref | Ref<HTMLDivElement> | — |
Ref forwarded to the root div element of the avatar. Enables access to the DOM node, e.g., for focus or measurements. | ||
size | AvatarSize | — |
| Defines the size of the avatar. Affects both the container and any nested content (image, initials, etc.). | ||
variant | AvatarVariant | — |
| 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
AvatarGroupPropsAvatarGroupStackItemPropsAvatarGroupSizeAvatarGroupVariant
State Model
AvatarStackhas no controlled state.- Size and variant are shared to child avatars through context.