Avatar
An image element with a fallback for representing the user.
Preview
CN
Installation
Use the CLI to add this component to your project.
Usage
tsx
10 linesCopy
Examples
Sizes
SMMDLGXL
Fallback
JDABMKTS
Avatar Stack
CNABMK+5
With Name
CN
shadcn
@shadcn
Props
| Prop | Type | Description |
|---|---|---|
Avatar | div | The root container |
AvatarImage | img | The image element |
AvatarFallback | div | Fallback when image fails to load |