shadcn.io is not affiliated with official shadcn/ui
Avatar examples · Standard
Avatar with Verification Check (Standard) for React
A round avatar with a blue verified badge at its bottom corner.
The blue check is how people tell a real account from an impostor. This React avatar puts a check badge in the info color on a small background-colored circle at the bottom corner of a round avatar, with a visually hidden Verified label for screen readers. Use it for official accounts, verified creators and staff in comments and directories.
Preview
Installation
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.
Related
- Avatar StandardA round avatar with a profile picture and
- Avatar with Online Indicator (Standard)A round avatar with a green dot at the
- Avatar with Verification Check (Square)A square avatar with a blue verified
- Avatar with Count Indicator (Standard)A round avatar with a red count of unread
- Avatar with Offline Indicator (Standard)A round avatar with a gray dot at the
- Avatar with Placeholder Icon (Standard)A round avatar with no picture that shows