Skip to main content

Type Alias: AdwAvatarProps

AdwAvatarProps = WidgetProps & object

Defined in: generated/jsx.ts:1525

Props for the AdwAvatar widget.

Type Declaration

NameTypeDescriptionDefined in
customImage?Gdk.Paintable | nullA custom image paintable. Custom image is displayed instead of initials or icon.generated/jsx.ts:1531
iconName?string | nullThe name of an icon to use as a fallback. If no name is set, avatar-default-symbolic will be used.generated/jsx.ts:1537
ref?Ref<Adw.Avatar>-generated/jsx.ts:1553
showInitials?booleanWhether initials are used instead of an icon on the fallback avatar. See AdwAvatar.icon-name for how to change the fallback icon.generated/jsx.ts:1543
size?numberThe size of the avatar.generated/jsx.ts:1545
text?string | nullSets the text used to generate the fallback initials and color. It's only used to generate the color if AdwAvatar.show-initials is FALSE.generated/jsx.ts:1552