Code

API

This component extends the native <div>arrow-up-right API, for example, the title attribute.

Props
Types
Required

children

string

βœ…

size

'default' | 'small' | 'large'

❌

status

'none' | 'online' | 'busy' | 'away' | 'ringing' | 'onCall' | 'onExternalCall' | 'recovery'

❌

profilePic

string

❌

showicon

boolean

❌

shape

'circle' | 'square'

❌

chevron-rightchildrenhashtag

In this case, just a string is passed to the element. Normally, a full name, but only the initials are rendered.

chevron-rightsizehashtag

The size prop handles the width and height of the avatar element.

chevron-rightstatushashtag

The status prop controls the icon rendered inside the avatar component showing its state.

chevron-rightprofilePichashtag

In case there is a profile picture, this can be passed a string and this will replace the avatar default initials.

chevron-righticonhashtag

To render a custom icon.

chevron-rightshowIconhashtag

To hide default/custom icons.

chevron-rightshapehashtag

To modify the avatar's shape. Choose between circled and squared.

Example

Last updated