2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search 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. Use the empty prop to render an empty avatar. Use the icon prop to render an icon in the avatar. Use the T-shirt size model or set sizes with numbers (REM).
Prop
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
{ color: "green" | "yellow" | "red" | "gray"; }
style
React.CSSProperties
className
string
…and every FlexProps propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club