Avatar

Avatar component is used to represent a user or product brand, it can display text, icons, or images.

Shape

Avatar shape can be a circle, rounded or square.

Size

Avatar component comes in 3 sizes sm, md and lg, it also allow to to set custom size.

Type

Avatar can display in text, icons, or images

Color

Colors can be apply to text & icons avatar via props backgroundColor & textColor

Status

Avatar can also have status badge along with Badge component.

Avatar Group

Chain multiple Avatar in a row

API

Avatar
PropDescriptionTypeDefault
shapeShape of Avatar'rounded-sm' | 'square' | 'circle''rounded-sm'
sizeSize of Avatar'lg' | 'md' | 'sm' | number'md'
iconAvatar IconReactNode-
srcImage url of Avatar imagestring-
srcSetsrcset attribute for Avatar imagestring-
altalt attribute for Avatar imagestring-
Avatar.Group
PropDescriptionTypeDefault
chainedWhether to stack avatars within groupbooleanfalse
maxCountLimited avatars to display & append an ommited avatarnumber4
omittedAvatarContentCustom omitted avatar contentstring | ReactNode
omittedAvatarPropsOmitted avatar propsObject (Refer to Avatar props above)-
omittedAvatarTooltipWhether to enable tooltip for omitted avatarbooleanfalse
onOmittedAvatarClickCallback when omitted avatar clicked() => void-
omittedAvatarTooltipPropsProps for omitted avatar tooltip, refer to tooltip props for detailsObject-