@univerjs/design v0.5.0-beta.1 • Docs
Interface: IAvatarProps
Properties
Property | Type | Description | Defined in |
---|---|---|---|
alt? | string | Image description | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:36 |
children? | ReactNode | - | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:27 |
fit? | ImageFit | The fit of the image avatar Default fill | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:57 |
onError? | () => void | Handler when img load error | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:60 |
onLoad? | () => void | Handler when img load success | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:63 |
shape? | Shape | The shape of the avatar Default 'circle' | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:42 |
size? | AvatarSize | The size of the avatar Default 'middle' | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:48 |
src? | string | The address of the image for an image avatar or image element | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:51 |
style? | CSSProperties | Semantic DOM style | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:30 |
title? | string | The title of the image avatar | submodules/univer/packages/design/src/components/avatar/Avatar.tsx:33 |