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
LGEHCBPLCDDS
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
LGEHCBPLCDDS
LGEHCBPLCDDS
LGEHCBPLCDDS
LGEHCBPLCDDS
LGEHCBPLCDDS
LGEHCBPLCDDS
LGEHCBPLCDDS
AvatarGroup styles
AvatarGroup also comes in two styles of avatar, rounded
& squared
LGEHCBPLCDDS
LGEHCBPLCDDS
💡
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.
LGEHCB3
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.
LGEHCB3
API Reference
Prop | Type | Default |
---|---|---|
squared | boolean | true |
size | union | xl |
max | number | none |
showRing | boolean | false |
ringColor | string | ring-white |
Last updated on July 18, 2022