An avatar component is used as a representation of a user identity typically in a user profile.

  • Renders an icon inside the default slot.

base - The base wrapper of the avatar.

initials - The initials wrapper of the avatar.

image - The image wrapper of the avatar.

icon - The icon wrapper of the avatar.

Callable

  • Returns ReactNode

Properties

alt: string

Alternative text for the image.

initials: string

Initials to use as a fallback when no image is available.

The shape of the avatar.

src: string

The image source to use.