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

Slots
default — Renders an icon inside the default slot.
CSS Parts
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.

Alternative text for the image.

alt: string

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

initials: string

The shape of the avatar.

shape: AvatarShape

The image source to use.

src: string