To use UserAvatar, you can import the component from the @dhis2/ui library
import { UserAvatar } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| name | string | * | ||
| ariaLabel | string | |||
| avatarId | string | |||
| className | string | |||
| dataTest | string | 'dhis2-uicore-useravatar' |
||
| extralarge | custom | |||
| extrasmall | custom | |||
| large | custom | |||
| medium | custom | |||
| small | custom |