Skip to main content

Avatar

Displays a user’s profile picture, with a fallback for loading or error states.

Import

Avatar.Root

Groups all parts of the avatar.

Props

Inherits common props (className, render, style).

State

  • status: ‘loading’ | ‘loaded’ | ‘error’ - The loading status of the avatar image

Avatar.Image

The avatar image element.

Props

Avatar.Fallback

Content displayed while the image is loading or if it fails to load.

Props