Avatar Group
A component to display a group of avatars with overlapping images.
Installation
npx react-nex add AvatarGroupComponents of Avatar Group
Avatar Group Component
Examples
Custom Container Style
Style the container using Tailwind CSS classes
Custom Image Container Style
Style the image container using Tailwind CSS classes
Overlap Order
Control the z-index overlap order using the overlap prop.
Props
children
- Type:
ReactNode - Description: The avatars to be displayed in the group.
containerStyle
- Type:
string - Description: Additional Tailwind CSS classes to apply to the avatar group container.
imageContainerStyle
- Type:
string - Description: Additional Tailwind CSS classes to apply to each avatar container.
overlap
- Type:
'forward' | 'reverse' - Description: Determines the z-index order of the avatars. Use
'forward'for increasing z-index and'reverse'for decreasing z-index.