Skip to main content

Avatar

Basic Usage

API

Avatar

The properties of the Avatar are described as follows:

PropertyDescriptionTypeDefaultrequired
classNameset class selectorstring-false
imageresource address of the image avatarstring | null-false
namethe name of the image, used to set the titlestring-false
shapeset the shape‘circle’ | 'rounded' | 'square’‘circle’false
sizeset the sizenumber32false
styleset the styleReact.CSSProperties-false
Onclickthe callback when the avatar is clicked(event: React.BaseSyntheticEvent) => void() => undefinedfalse
OnMouseOverthe callback when the mouse hovers the avatar(event: React.BaseSyntheticEvent) => void() => undefinedfalse