Beta Preview

Avatar

An avatar is a thumbnail representation of an entity, such as a user or an organization.

Avatar
isOverBackground 
import {Avatar} from '@react-spectrum/s2';

<Avatar
  src="https://i.imgur.com/xIe7Wlb.png"
  alt="Avatar" />

API

NameTypeDefault
altstringDefault:
Text description of the avatar.
srcstringDefault:
The image URL for the avatar.
stylesDefault:
Spectrum-defined styles, returned by the style() macro.
size16202428323640444856648096112number{}Default: 24
The size of the avatar.
isOverBackgroundbooleanDefault:
Whether the avatar is over a color background.