AvatarGroup
AvatarGroup is a component that displays a group of avatars.
Imports
import { Avatar, AvatarGroup } from "@adaptui/react-tailwind";
💡
A complex component that supports customization as per the composition guide.
Usage
AvatarGroup sizes
Sizes can be set using the size
prop. The default size is "xl"
. The
available sizes are: xs
sm
md
lg
xl
2xl
3xl
AvatarGroup styles
AvatarGroup also comes in two styles of avatar, rounded
& squared
💡
Avatar Group doesn't come with any status indicators
AvatarGroup props
max
Set max
to limit the number of avatars in the group. By default AvatarGroup
will display all avatars.
ringColor
Set ringColor
to change the color of the ring around the avatars. By default
it is "ring-white"
. This props can be used to match the parent's background to
the AvatarGroup.
API Reference
Prop | Type | Default |
---|---|---|
squared | boolean | true |
size | union | xl |
max | number | none |
showRing | boolean | false |
ringColor | string | ring-white |