Skip to content
TrademarkTrademark
Docs
Components

Avatar

Updated: May 5, 2025
View on GitHub

A versatile component for displaying user profile images, initials, or fallback icons in a circular container. Commonly used in user interfaces to represent people.

Empty

Use the empty prop to render an empty avatar.

Icon

Use the icon prop to render an icon in the avatar.

Sizes

Use the T-shirt size model or set sizes with numbers (REM).

Status indicator

Loading state

API reference

Type
Default
size
TShirtSizesnumber
m
value
string—
src
string—
unoptimized
Bypass the image optimizer, for sources it cannot process.
boolean—
loading
boolean—
empty
boolean—
icon
IconName—
statusIndicator
A status dot, in any StatusIndicator colour: { color: "orange" }.
{ color: StatusIndicatorColor; }—
style
React.CSSProperties—
className
string—
…and every FlexProps propinherited—
Edit this page on GitHub