Code
<PyxisAvatar
label="AV"
/>
Props
The Avatar component supports the following props:
Name |
Type |
Default |
Required |
---|---|---|---|
label |
string |
undefined |
true |
size |
'default' | 'compact' |
'default' |
false |
color |
'primary'|'secondary'|'warning'|'danger'|'success'|'premium'|'earth'|'neptune'|'jupiter'|'cloudy'|'system'|'neutral'|'brand' |
'primary' |
false |
ariaLabel |
string |
undefined |
false |
dataTestid |
string |
undefined |
false |
src |
string |
undefined |
false |
alt |
string |
'Avatar' |
false |
isSquare |
boolean |
false |
false |