Avatar

Avatar represents people using icons, labels and images.

import { AvatarModule } from 'primeng/avatar';
import { AvatarGroupModule } from 'primeng/avatargroup';

A letter Avatar is defined with the label property.

Label
PVU
Circle
PVU
Badge
U4

A font icon is displayed as an Avatar with the icon property.

Icon
Circle
Badge
4

Use the image property to display an image as an Avatar.

Image
Badge
4
Gravatar

Grouping is available by wrapping multiple Avatar components inside an AvatarGroup.

+2

size property defines the size of the Avatar with large and xlarge as possible values.

PT

Avatar comes in two different styles specified with the shape property, square is the default and circle is the alternative.

PT

A badge can be added to an Avatar with the Badge directive.