Pulse
Pulse

Components

Avatar

A circular identity marker with three fallback modes — image, initials, and a generic icon — plus an optional status dot for presence.

Playground

JS

Size

Status

Modes

Image

Renders when `src` is provided.

Jitendra Singh

Initials

Fallback when `name` is set but `src` isn't — first + last initials.

JS

Icon

Fallback when neither `src` nor `name` is set.

Broken image

An unreachable `src` falls back to initials (or the icon) instead of a broken-image glyph.

Jitendra Singh

Sizes

JS

sm

JS

md

JS

lg

JS

xl

Status

JS

online

JS

busy

JS

away

JS

offline

Props

PropTypeDefaultDescription
srcstring—Image URL. Renders image mode; if the image fails to load, falls back to initials/icon automatically instead of a broken-image glyph.
namestring—Display name — used for alt text, and (without src) to derive initials. Omit entirely for the icon fallback.
size"sm" | "md" | "lg" | "xl""md"24 / 32 / 40 / 56px.
status"online" | "busy" | "away" | "offline"—Optional status dot, bottom-right, cut out against background/primary.
...restHTMLAttributes<HTMLDivElement>—className, aria-*, and any other native div prop.

Usage Guidelines

When to use

  • Use to represent a person or account identity — in navigation, comment threads, assignee lists.
  • Use the status dot only when presence genuinely matters to the task (online/offline collaboration, live support).

When not to use

  • Don't use Avatar for non-person entities like services or teams without a distinguishing icon — initials can misrepresent a team as an individual.
  • Don't rely on the status dot alone to convey state where the distinction is important — pair it with text (e.g. in a member list).

Usage