shadcn.io is not affiliated with official shadcn/ui
Avatar examples · Square
Avatar with Placeholder Initials (Square) for React
A square avatar with no picture that shows initials as the placeholder.
Framework
UI library
Initials in a square read as an organization rather than a person. This React avatar has no image: AvatarFallback shows CN in a rounded-lg square on the muted background. Use it for companies, teams and workspaces that haven't uploaded a logo.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How is the square applied with no photo?
rounded-lg is on Avatar and AvatarFallback, and after:rounded-lg is on Avatar for the border. There is no AvatarImage to round.
What does the fallback show?
The text CN. With no image, that fallback is always the face, centered in the square.
What color is the square?
Muted background and muted foreground, from the avatar styles. This file doesn't set a background class.
Related
- Avatar SquareA square avatar with a profile picture
- Avatar with Placeholder Initials (Standard)A round avatar with no picture that shows
- Avatar with Placeholder Icon (Square)A square avatar with no picture that
- Avatar with Online Indicator (Square)A square avatar with a green dot at the
- Avatar with Count Indicator (Square)A square avatar with a red count of
- Avatar with Offline Indicator (Square)A square avatar with a gray dot at the