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

isOverBackground
API
| Name | Type | Default |
|---|---|---|
alt | string | Default: — |
Text description of the avatar. | ||
src | string | Default: — |
The image URL for the avatar. | ||
styles | StylesPropWithoutWidth | Default: — |
Spectrum-defined styles, returned by the | ||
size | 16
| 20
| 24
| 28
| 32
| 36
| 40
| 44
| 48
| 56
| 64
| 80
| 96
| 112
| number & | Default: 24
|
The size of the avatar. | ||
isOverBackground | boolean | Default: — |
Whether the avatar is over a color background. | ||
id | string | Default: — |
The element's unique identifier. See MDN. | ||
UNSAFE_className | UnsafeClassName | Default: — |
Sets the CSS className
for the element. Only use as a last resort. Use the | ||
UNSAFE_style | CSSProperties | Default: — |
Sets inline style for the
element. Only use as a last resort. Use the | ||
slot | string | null | Default: — |
A slot name for the component. Slots allow the component to receive props from a parent
component. An explicit | ||