Avatar

Avatar is a visual that represent a user or an organization

Code


                                                        
                                                        
                                                            <PyxisAvatar
                                                            label="AV"
                                                        />
                                                        
                                                            

Example of a Avatar component

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