Docs
Avatar

Avatar

Avatars can be used to represent people or objects. It supports images, icons, and text.

SPSPSP

Usage

Example Code

1import { Avatar, AvatarFallback, AvatarImage } from "inc-design-system/avatar";

Example Code

1<Avatar>
2  <AvatarImage
3    src="https://xsgames.co/randomusers/assets/avatars/female/0.jpg"
4    alt="userProfile"
5  />
6  <AvatarFallback>SP</AvatarFallback>
7</Avatar>

Props

Avatar

AvatarBadge

PropTypeDescriptionDefault
position'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight'Specifies the badge's position relative to the avatar. Default is bottomLeft.'bottomLeft'

AvatarGroup

PropTypeDescriptionDefault
limitnumberSpecifies the maximum number of avatars to show before showing an overflow indicator.-