Skip to main content

Avatar

A basic avatar component. Use avatars to visually represent entities in your product, for example people, tokens, currency and companies.

Usage Example

Live Editor
Result
Loading...

Props

PropTypeDefaultDescription
altstring (optional)'Avatar'Sets alt attribute on image for accessibility.
bgstring (optional)'grey'Sets background color.
sizestring (optional)'2rem'Sets avatar height and width.
srcstring (required)Sets avatar image.
themeobject (optional)Sets theme.

Avatar also uses COMMON, LAYOUT, POSITION, FLEXBOX, BORDERS groups of Styled System props.