@univerjsdesigninterfacesIavatarprops

@univerjs/design v0.5.0-beta.1Docs


Interface: IAvatarProps

Properties

PropertyTypeDescriptionDefined in
alt?stringImage descriptionsubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:36
children?ReactNode-submodules/univer/packages/design/src/components/avatar/Avatar.tsx:27
fit?ImageFitThe fit of the image avatar Default fillsubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:57
onError?() => voidHandler when img load errorsubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:60
onLoad?() => voidHandler when img load successsubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:63
shape?ShapeThe shape of the avatar Default 'circle'submodules/univer/packages/design/src/components/avatar/Avatar.tsx:42
size?AvatarSizeThe size of the avatar Default 'middle'submodules/univer/packages/design/src/components/avatar/Avatar.tsx:48
src?stringThe address of the image for an image avatar or image elementsubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:51
style?CSSPropertiesSemantic DOM stylesubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:30
title?stringThe title of the image avatarsubmodules/univer/packages/design/src/components/avatar/Avatar.tsx:33