1. components
  2. avatar
  3. react

Avatar

An image with a fallback for representing the user.

skeleton

Fallback

When the src prop is undefined, default children will show. This can be used for initials, icons, or fallback images.

<Avatar>SK</Avatar>
<Avatar>💀</Avatar>

API Reference

Avatar

Property Type Description
src
string
Set avatar image source URL.
alt
string
Set avatar image Alt text.
filter
string
Set avatar image filter name. such as "#Apollo".
base
string
Set base styles.
background
string
Set background styles.
size
string
Set size styles.
font
string
Set font styles.
border
string
Set border styles.
rounded
string
Set border radius styles.
shadow
string
Set shadow styles.
classes
string
Provide arbitrary CSS classes.
imageBase
string
Set avatar image base styles.
imageClasses
string
Provide avatar image arbitrary CSS classes.
children
React.ReactNode
-