Menu
Esc
DocsGitHub TR

Components

Avatar

A picture of a person or an account: their photo, their initials or an icon, with optional status and notification marks.

Open in Figma

Playground

Halil Nuroğlu

Figma variant

💅 Style=Image
👕 Size=Medium
🕹 State=Default
🟢 Status=False
🔔 Notification=False

Variants

The content picks the style: an image, initials from the name, or an icon. Initials and icons sit on primary soft.

Halil Nuroğlu

Sizes

XLarge and Medium have the card radius; Small, Tiny and Micro are round. Tiny and Micro show one initial.

Halil NuroğluHalil NuroğluHalil NuroğluHalil NuroğluHalil Nuroğlu
SizeBoxRadiusInitialsIconStatusNotification
xlarge72px--radius-cardui/text lead/bold36px12px20px
medium48px--radius-cardui/text/bold24px8px20px
small32px--radius-fullui/text/bold16px8px16px
tiny24px--radius-fullui/text small/bold12px4px—
micro16px--radius-fullui/footnote/bold8px——

Status and notification

The status dot sits in the bottom end corner (not in Micro); the notification bubble overlaps the top end corner (XLarge, Medium and Small).

Halil Nuroğlu22Halil Nuroğlu2

Avatar Group

Overlap steps each avatar 8px back; Spaced keeps the 8px in-group gap. A trailing button can add people.

AdaDenizEce
AdaDenizEce

Tokens

PartToken
Initials / icon background--color-primary-soft
Initials / icon--color-foreground-high-emphasis
Ring (1px outside)--color-surface-level-1
Status--color-success, 2px --color-surface-level-1 ring
Notification--color-primary / --color-on-primary, 2px --color-surface-level-1 ring
Hover--shadow-focus-primary
Group gap--space-form-ingroup-gutter

Notes from Figma

  • XLarge Name Surname has a 24px radius while the XLarge image and icon use 16px; code uses the card radius (16px) for all XLarge.
  • The hover state is the primary focus shadow; code shows it when the avatar is inside a hovered or focused link or button.
  • The Small notification sits at x 24 in Name Surname and Icon and x 26 in Image, and at y −4 in one Small variant; code places it 8px over the corner in every size.
  • Avatars in the group have a 1px stroke with a raw color; code uses surface/level-1.
  • The icon color is not bound in Figma; code uses foreground/high-emphasis, like the initials.

Figma to code

FigmaReact
💅 Style = Image / Name Surname / Iconsrc="…" / name="…" / icon={<Icon… />}
👕 Size = XLarge / Medium / Small / Tiny / Microsize='xlarge' / 'medium' / 'small' / 'tiny' / 'micro'
🕹 State = Hoverinside a hovered link or button (data-state="hover" in docs)
🟢 Status = Truestatus
🔔 Notification = Truenotification={2}
Avatar Group / Property 1 = Overlap / Spaced<AvatarGroup layout='overlap' | 'spaced'>