Avatar

An image representing a person or organization, with initials as a fallback.

Installation

import { Avatar } from "@o/pipeline/experimental/components/avatar";

Usage

Note

See AvatarGroup for grouping a set of avatars together.

shape

circle

Use for people or users.

MA

square

Use for organizations or companies.

O

size

size sets the avatar’s frame: 14, 16, 18, 20, 24 or 32px. The avatar draws at 14/16 of it, like an icon in its glyph frame (14px in 16px, 21px in 24px, 28px in 32px). xs has no room for a frame and draws its full 14px.

xs

MA
O

sm

MA
O

base

DK
O

md

DC
O

lg

JB
O

xl

JB
O

status

An optional dot at the bottom-right indicates online (green), away (yellow), or offline (gray). The dot scales with the avatar and includes a screen-reader label. Omit status when presence is unknown. For online-only presence, omit status for offline profiles.

MA
DK
DC

skeleton

skeleton stands the avatar in as a placeholder of the same size and shape while what it shows is loading. Inside a loading SkeletonGroup it is on by default; see Skeleton.

<Avatar.Root skeleton={loading}>…</Avatar.Root>

Fallback

MA
DK
DC
JB
JB
CK
oM
oM
Om
oM
Om
oM