shadcn.io is an independent project built on shadcn/ui
A round avatar with no photo shows the letters CN, centered on the muted background. There is no image to load.
Use it for new accounts and anywhere a photo is optional. The letters should come from the name. A generic person icon is the other fallback, and a status can sit in a Badge. In Solid, Ark UI does not invent the initials.
Installation
Anatomy
Usage
<Avatar>
<AvatarFallback>CN</AvatarFallback>
</Avatar>FAQ
Why are the initials always visible?
There is no AvatarImage, so AvatarFallback is the avatar. The text is CN, and the fallback centers it.
Where does the background color come from?
The avatar styles set a muted background and muted foreground on AvatarFallback. This file doesn't pick a color from the name.
How do I change the size?
Set size on Avatar to sm, default, or lg. The fallback text gets smaller on sm. This file uses the default.
API Reference
Avatar
No extra props in this demo. The rest is on the Avatar page.