Usage
To display a group of avatars together, wrap avatars in an <AvatarGroup>
.
Sizing
You can adjust the size of all avatars in a group by setting the size
.
Visible count
By default, only three avatars will display. If you have more users you want to show, increment the total
count.
Overflow count
If there are more avatars than can be displayed, set hasOverflow
to true. It will calculate and show a count of the avatars hidden from view.
If you want to directly specify a count instead of passing in children, use totalEntityCount
.
API Reference
AvatarGroup
Inherits properties from HTMLElement
.
Prop | Type | Default |
children | ReactNode | |
hasOverflow | boolean | false |
size | "xxs" "xs" "sm" "md" "lg" "xl" "2xl" "3xl" | "sm" |
theme | "light" "dark" | "dark" |
total | number | 3 |
totalEntityCount | number | |