On this page:

Avatar

Sizes

Preview

index.tsx

Initials

Preview

index.tsx
JD
AB
XY
WZ

Images

Preview

index.tsx
Portrait
Portrait
Portrait
Portrait

Children

Preview

index.tsx
RP

Preview

index.tsx
Portrait
Portrait
Portrait

Border Styles

Preview

index.tsx
JD
JD
JD
JD

Status Dot

Preview

index.tsx
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD
JD

Status Border

Preview

index.tsx
JD
JD
JD
JD
JD
JD
JD
JD

Status with Pulse

Preview

index.tsx
JD
JD

Avatar Group

Preview

index.tsx
Portrait
Portrait
Portrait
Portrait
JD
+2
Portrait
Portrait
Portrait
+2
Portrait
Portrait
Portrait

Avatar Trigger

Preview

index.tsx
JD
Portrait

Disabled Avatar

Preview

index.tsx
JD
Portrait
Portrait
JD
AB

Design Tokens for Avatar

TokenColor forState/Meaning
--par-color-bg-avatarAvatar backgroundDefault background
--par-color-bg-avatar-disabledAvatar backgroundDisabled state
--par-color-bg-avatar-triggerAvatarTrigger bgAvatar trigger background
--par-color-border-avatarAvatar borderDefault border
--par-color-border-avatar-alternativeAvatar border altAlternative border style
--par-color-border-avatar-grayAvatar border grayGray status border
--par-color-border-avatar-redAvatar border redRed status border
--par-color-border-avatar-greenAvatar border greenGreen status border
--par-color-border-avatar-yellowAvatar border yellowYellow status border
--par-color-text-avatarInitials/placeholderInitials & placeholder
--par-color-text-avatar-disabledAvatar textDisabled state
--par-color-text-avatar-triggerAvatarTrigger textAvatar trigger text
--avatar-group-spacingGroup spacingSpacing between avatars

Avatar API Reference

<Avatar />

Displays a user avatar with support for image, initials, icon fallback, status indicator (dot or border), and custom content.

PropTypeDefaultDescription
srcstringImage URL for the avatar.
altstringAlt text for the image.
initialsstringInitials to display if no image is available.
size'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Avatar size.
framePaddingnumber1Padding (px) between avatar and border.
disabledbooleanfalseDisables the avatar.
status{ type, color, pulse, borderStyle }Status indicator (see below for details).
wrapperPropsReact.HTMLAttributes<HTMLDivElement>Props for the avatar wrapper element.
childrenReactNodeCustom content inside the avatar.
...divPropsHTMLDivElement propsAll native div props (className, style, ...).

status object:

FieldTypeDefaultDescription
type'dot' | 'border''border'Status indicator type.
color'gray' | 'green' | 'red' | 'yellow''gray'Status color.
pulsebooleanfalsePulse animation for status.
borderStyle'default' | 'alternative' | 'none' | 'inherit''default'Border style for status.

<AvatarGroup />

Displays a group of avatars with overflow handling and shared props.

PropTypeDefaultDescription
maxnumber5Max avatars to display before showing overflow.
direction'row' | 'column''row'Stack direction.
spacingstring'-0.5rem'Spacing between avatars.
size'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Size for all avatars in the group.
borderStyle'default' | 'alternative' | 'none' | 'inherit''default'Border style for all avatars.
framePaddingnumberPadding for all avatars.
renderOverflow(overflowCount, hiddenAvatars) => ReactNodeCustom overflow indicator renderer.
onOverflowClick(e: React.MouseEvent<HTMLDivElement>) => voidHandler for overflow avatar click.
childrenReactNodeAvatars to display.
...divPropsHTMLDivElement propsAll native div props (className, style, ...).

<AvatarTrigger />

A clickable avatar, typically used as a trigger for menus or popovers. Inherits all Avatar props.

PropTypeDefaultDescription
activebooleanfalseWhether the trigger is active/selected.
...AvatarPropsSee aboveAll props from Avatar.

Note: AvatarTrigger extends all props from Avatar. See the Avatar props table above for details.