Avatar
represents a user profile.
In addition, the following props of Image component are also supported:
alt
lazy
onClick
onError
.
Basic usage of Avatar component.
Properties | Description | Type | Default |
---|---|---|---|
fallback | The fallback placeholder | ReactNode | The fallback image. |
fit | The fill mode of the image | 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | cover |
src | The image source of avatar | string | - |
shape | The image shape | square | circle | square |
size | The image size | number | - |