Join our Discord Community
Avatar/Standard

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.

Loading preview...

Pattern created by @haydenbleasel

Installation

npx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-3.json
npx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-3.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-3.json
bunx shadcn@latest add https://www.shadcn.io/registry/avatar-standard-3.json

Questions you might have