shadcn.io is an independent project built on shadcn/ui
A round photo has a check badge at the bottom corner, in the info color, on a small background circle. A hidden label says Verified. The initials CN show only if the picture fails.
Use it for an official account, a verified creator, or staff. The check does not prove anything until your own rules set it. A text label fits a Badge if the icon is unclear. In Solid, Ark UI does not verify the person.
Installation
Anatomy
Usage
<div class="relative w-fit">
<Avatar>
<AvatarImage alt="@shadcn" height={32} src="https://github.com/shadcn.png" width={32} />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<span class="absolute -end-1 -bottom-1 flex size-4 items-center justify-center rounded-full bg-background">
<BadgeCheckIcon aria-hidden="true" class="size-full fill-info text-background" />
<span class="sr-only">Verified</span>
</span>
</div>FAQ
How is the checkmark built?
The avatar sits in a relative w-fit wrapper. A span at -end-1 -bottom-1 is a size-4 circle with bg-background, and BadgeCheckIcon fills it with fill-info and text-background.
How is the check announced?
The icon is aria-hidden. A visually hidden "Verified" in the same span is the accessible name.
How is the check positioned?
The span is absolute on the bottom end corner. -end-1 follows the writing direction, so the check moves in a right-to-left page.
How do I change the check color?
fill-info paints the badge and text-background punches the check. Swap fill-info for another fill token to recolor it.
API Reference
Avatar
Sets alt="@shadcn", height={32}, src="https://github.com/shadcn.png" and width={32}. The rest is on the Avatar page.