Avatar

An image element with a fallback for representing the user.

The Avatar component displays a user's profile image with an automatic fallback when the image fails to load or is not provided. It supports multiple sizes and can display custom fallback content. Built from scratch using React and native HTML img elements. No UI library dependencies.

Quick Install

Install via shadcn/ui CLI

Examples

UserUserUserUser
JD
AB
CD
EF