Skip to content

Avatar

People and workspaces, 24 to 64px, with initials fallback and status.

KSMPIGNLORA
AvatarLive · light and dark follow the theme switch

Add the source to a shadcn project

npx shadcn@latest add https://docs.atomus.io/r/avatar.jsonOpen in v0

Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works

From guidelines/components/avatar.md · Open in Figma: Avatar

Properties, variants and anatomy of the Figma components. React props use the same names.

Avatar 24–64px. Shape: Circle or Rounded. Type: Image (pick a face via the Photo property), Initials, Icon. Optional status dot.

Variants: 36

Property Type / options
Status boolean (off)
Initials text
Icon swap instance swap (icon)
Size xs · sm · md · lg · xl · 2xl
Type Image · Initials · Icon
Shape Circle · Rounded

Stock avatar photos. Pick one via the Photo property on Avatar, or drop your own image into an instance.

Variants: 22

Property Type / options
Face M01–M12 · F01–F10

Stacked avatars with overflow count.

Variants: 3

Property Type / options
Size xs · sm · md

Avatar with name and email — for tables, nav and comments.

Variants: 2

Property Type / options
Name text
Supporting text text
Size sm · md
import { Avatar } from '@stanvision/atomus-react';
<Avatar name="Kristina Stan" src={photo} size="md" status="online" />

Shows a person or workspace. Falls back to initials, then to a user icon.

Full types and defaults are in React API at the end of the page.

  • name — used for initials, tooltip and accessible name.
  • src (Figma: Type=Image), initials (Figma: Initials), icon (Figma: Icon swap).
  • size xs 24 · sm 32 · md 40 · lg 48 · xl 56 · 2xl 64; shape circle · rounded; status online · away · offline.

Don’t

  • Don’t use stock faces as placeholders — use initials.

From the Figma guidelines.

Do

  • Use a photo when you have one; fall back to initials, then an icon.
  • Always pass the person’s name so the avatar has an accessible name and tooltip.
  • Show the status dot only for live presence (online, away, offline).

Forbidden

  • Never stretch or crop photos by hand — size comes from the Size variant.
  • Never mix Circle and Rounded shapes in one list.
  • Never use an avatar as decoration without a name nearby.

Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/avatar.md.

Use only these props; anything else is not part of the API.

import { Avatar } from '@stanvision/atomus-react'; — source: react/src/components/Avatar.tsx

Prop Type Default Description
name string — Person or workspace name — used for initials, tooltip and accessible name
src string — Figma: Type=Image
initials string — Figma: Initials — overrides the initials derived from name
icon ReactNode — Figma: Type=Icon + Icon swap
size 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' 'md' Figma: Size — xs 24 · sm 32 · md 40 · lg 48 · xl 56 · 2xl 64
shape 'circle' | 'rounded' 'circle' Figma: Shape
status 'online' | 'away' | 'offline' — Figma: Status

Also accepts every native <span> attribute (id, title …).