Skip to content

Avatar

An image element with a fallback for representing the user.

Examples

Default

CN
vue
<Avatar>
  <AvatarImage src="https://github.com/radix-vue.png" alt="@radix-vue" />
  <AvatarFallback>CN</AvatarFallback>
</Avatar>

Props

AvatarImage

PropTypeDefaultDescription
srcstring-The source of the image.
altstring-The alt text of the image.

AvatarFallback

PropTypeDefaultDescription
delayMsnumber-Useful for delaying rendering so it only appears for those with slower connections.

Slots

Avatar

SlotDescription
defaultThe content of the avatar (Image and Fallback).

AvatarFallback

SlotDescription
defaultThe content of the fallback (e.g. initials).