Avatar

An image element with a fallback for representing users. Built on Radix UI Avatar with automatic fallback delay.

JDABMR

With Fallback

The AvatarFallbackrenders when the image fails to load or while it's loading. Provide initials or an icon:

Sizes

Use Tailwind classes to control avatar size:

SMMDLGXL

Installation

Props

PropTypeDefaultDescription
src
stringImage URL for AvatarImage.
alt
stringAlt text for the avatar image.
delayMs
number600Milliseconds before showing the fallback if the image hasn't loaded.