Integrated ResearchPicasso
Components

Avatar

A person or tenant, as a picture, initials or a generic mark.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

A person or tenant, as a picture, initials or a generic mark.

Import

import { Avatar, AvatarImage, AvatarFallback, AvatarStatus, AvatarGroup, AvatarAddButton } from "@ir/ui";

Watch out

  • Note the ring is NOT what Figma uses for groups — every avatar in Avatar group is Border=False, so overlapping avatars have no separating edge at all. Followed as drawn; raised as an observation, because same-fill circles overlapping by 4–12px have nothing marking where one ends.
  • Figma's online dot has two gradient "Reflection" layers over the solid fill — a radial highlight and a linear sheen. Reproduced here as the flat fill only: the gradients need per-stop colour values, which is exactly what no-arbitrary-values refuses, and a gloss on an 10px dot is below the threshold where anyone can see it. Raised rather than quietly matched.

Variants

AxisOptionsDefault
sizexs · sm · mdmd
variantdefault · inversedefault
sizedefault · inversemd

Props

AvatarFallback

PropTypeRequiredWhat it does
iconbooleanShow the generic person icon instead of initials. Figma's Placeholder icon.

AvatarStatus

PropTypeRequiredWhat it does
countnumberFor type="count".
labelstringWhat the dot means, for anyone not looking at it.

AvatarGroup

PropTypeRequiredWhat it does
actionReact.ReactNodeTrailing control, sat 8px clear of the stack. Usually AvatarAddButton.
ringbooleanRing every avatar in the group. Defaults to true, matching the file: without it, overlapping avatars have no edge and swallow each other's initials.
maxnumberShow at most this many, then a "+N" avatar for the rest — which is exactly what the file draws at the end of a group.

AvatarAddButton

PropTypeRequiredWhat it does
labelstringWhat adding does. "Add" alone rarely says enough.

Do and don't

Always give it initials or the generic person to fall back to.

Don't — Render an avatar with only an image source.

Profile pictures 404 more than anything else on a page. Without a fallback the layout collapses to an empty circle.

Give AvatarStatus a label, and repeat the state in text nearby.

Don't — Let the dot be the only thing saying someone is offline.

A colour on a 10px dot is invisible to a screen reader and hard for anyone who does not know the convention.

Don't — Hang the only route to a profile off clicking the avatar.

An avatar is an image. Nothing about it says it can be activated, and nothing announces where it goes.

Put the name beside it; keep the avatar as recognition, not identification.

Don't — Use initials alone in a list people scan to find someone.

Two colleagues share initials more often than you would think, and initials do not disambiguate them.

Pick the size from the row it sits in — xs in dense tables, md in headers.

Don't — Mix avatar sizes down one list.

The avatar sets the row's optical height. Changing it mid-list makes the whole list look misaligned.

Cap with max and let the +N carry the rest.

Don't — Stack twenty avatars because twenty people are on the incident.

Past about five, the faces stop identifying anyone and the row just eats width.

Accessibility

  • AvatarStatus carries role="img" with an aria-label — "online", "3 unread", or whatever label says. A dot that silently turns green tells a screen reader nothing.
  • The User fallback icon and the verified badge are both aria-hidden; the status wrapper's label is the only text in it.
  • The overflow "+N" button takes an explicit label. It is an icon and a number with no sentence of its own.

Where it is drawn

Figma — structure from figma, measurements from figma.

Open in Storybook

On this page