Components
Avatar

Avatar

A graphical representation of the user, often used in profile sections.

API reference docs for the component. Learn about the props, CSS, and other APIs of this exported module.

AvatarProps

getRootNode

() => ShadowRoot | Node | Document

A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.

id

string

The unique identifier of the machine.

onLoadingStatusChange

(details: StatusChangeDetails) => void

Functional called when the image loading status changes.

AvatarContext

fallbackProps

Dict<any>

imageProps

Dict<any>

isLoaded

boolean

Whether the image is loaded.

rootProps

Dict<any>

setError

() => void

Function to set error state.

setLoaded

() => void

Function to set loaded state.

setSrc

(src: string) => void

Function to set new src.

showFallback

boolean

Whether the fallback is shown.