Skip to main content

Type Alias: AdwAvatarProps

AdwAvatarProps = WidgetProps & object

Defined in: generated/jsx.ts:1766

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:1772
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:1778
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:1799
ref?Ref<Adw.Avatar>-generated/jsx.ts:1802
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:1784
size?numberThe size of the avatar.generated/jsx.ts:1786
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:1793