Avatar
Import |
Source |
Docs |
Examples
Loading...
Loading...


Loading...

Loading...
0
1
2
3
4
5
6
7
8
9
Loading...
API#
nz-avatar#
Property | Description | Type | Default | Global Config |
---|---|---|---|---|
[nzIcon] | The Icon type for an icon avatar, see Icon | string | - | |
[nzShape] | The shape of avatar | 'circle' | 'square' | 'circle' | ✅ |
[nzSize] | The size of the avatar | 'large' | 'small' | 'default' | number | 'default' | ✅ |
[nzGap] | Letter type unit distance between left and right sides | number | 4 | ✅ |
[nzSrc] | Avatar image URL | string | - | |
[nzSrcSet] | a list of sources to use for different screen resolutions | string | - | |
[nzAlt] | This attribute defines the alternative text describing the image | string | - | |
[nzText] | Letter type avatar | string | - | |
[nzLoading] | Sets the native loading attribute on the avatar image element | 'eager' | 'lazy' | 'eager' | |
[nzFetchPriority] | Sets the native fetchpriority attribute on the avatar image element | 'high' | 'low' | 'auto' | 'auto' | |
(nzError) | Handler when img load error, call the preventDefault method to prevent default fallback behavior | EventEmitter<Event> | - |
nz-avatar-group#
<nz-avatar-group>
<nz-avatar nzIcon="user"></nz-avatar>
<!-- ... -->
</nz-avatar-group>