Launch sale — 60% off Pro
Contact
AvatarStandard

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Avatar with Placeholder Icon

A circular avatar using a Lucide React icon as fallback, providing a generic user representation when no photo or name exists

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Sometimes you don't have user names or photos—just anonymous accounts or guest users. This React avatar uses a User icon from Lucide React inside AvatarFallback, creating a universal placeholder that communicates person without requiring personal data. Built with shadcn/ui and Radix UI, the icon scales properly with size-4 and maintains circular bounds. Perfect for guest accounts, anonymous comments, system users, or pre-authentication states where personal identifiers aren't available.

Pattern created by @haydenbleasel

Installation

Questions you might have