Avatar Examples
14 avatars in round and square shapes: profile pictures with initials fallbacks, placeholder icons and initials, online and offline dots, unread counts and verified checks. Each on React, Vue, Svelte and Solid, with Base UI, React Aria, Ark UI or Radix UI on React.
Every avatar example
14 examples.
- Avatar SquareSquareA photo with square corners and the initials CN as the fallback if that picture is missing or fails to load.

- Avatar StandardStandardA round photo with the initials CN ready as the fallback if that picture is missing or fails to load.

- Avatar with Count IndicatorSquareA square photo with a destructive badge at the top corner. The badge shows 3, and its hidden words say unread messages.

- Avatar with Count IndicatorStandardA round photo with a destructive badge at the top corner. The badge shows 3, and its hidden words say unread messages.

- Avatar with Offline IndicatorSquareA square photo with a muted dot at the bottom corner. The hidden label for that dot says Offline.

- Avatar with Offline IndicatorStandardA round photo with a muted dot at the bottom corner. The hidden label for that dot says Offline.

- Avatar with Online IndicatorSquareA square photo with a success-colored dot at the bottom corner. The hidden label for that dot says Online.

- Avatar with Online IndicatorStandardA round photo with a success-colored dot at the bottom corner. The hidden label for that dot says Online.

- Avatar with Placeholder IconSquareA square avatar with no photo and no initials. A user icon sits in the square on the muted background.

- Avatar with Placeholder IconStandardA round avatar with no photo and no initials. A user icon sits in the circle on the muted background.

- Avatar with Placeholder InitialsSquareA square avatar with no photo at all. The letters CN sit in the square on the muted background.

- Avatar with Placeholder InitialsStandardA round avatar with no photo at all. The letters CN sit in the circle on the muted background.

Or describe it. With Pro, your AI agent installs the avatar example you describe, on your framework and UI library.
Get ProGalleries
More component examples
8 related galleries, free: open one for its live examples and their code.
Pricing
Avatar examples MCP, with Pro
Your AI agent installs any of the 1364 examples, and every component, block and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
shadcn.io's Avatar shows a person's or an organization's picture, with a fallback such as initials or an icon while the image loads or when it fails. It comes with AvatarImage, AvatarFallback and AvatarBadge parts and three sizes. Each example in this gallery is one small file built from those parts.
Yes. Every example is free to use in personal and commercial projects, with no attribution required. Seeing the code and installing an example takes a free shadcn.io account.
A plain image shows a broken icon when it fails and nothing while it loads. The Avatar shows AvatarFallback instead, so there is always a face: initials, an icon or a color. It also crops the picture to its shape and draws a subtle border that works on light and dark backgrounds.
Round avatars read as people. Square ones, with rounded corners, read as organizations, workspaces, apps and bots, and sit well in grids and tables. Every example in this gallery comes in both shapes; the square ones add rounded-lg to the avatar, its image and its fallback.
Put an AvatarBadge inside the Avatar. It sits on the bottom end corner with a ring in the background color and scales with the avatar's size. Give it a theme color, bg-success for online or a muted one for offline, and a visually hidden label such as Online, since color alone doesn't reach screen readers.
The count examples wrap the avatar in a relative element and place a small destructive Badge over its top corner, with visually hidden words that say what the number counts. The top corner keeps the bottom one free for a presence dot.
Initials when you know the name: they tell people apart at a glance. A user icon when you don't, for guests, anonymous comments or accounts with no profile yet. Both sit in AvatarFallback on the muted background.
The verification examples place a check badge on a small background-colored circle at the bottom corner, filled with the info color, with a visually hidden Verified label. Keep it for accounts that really are verified, or it stops meaning anything.
Sign in with a free account, open the example and run the install command under Installation. The CLI adds the example's file to your project along with the Avatar component, and Badge when the example uses it. Then swap the sample GitHub picture for your users' images.
Set size to sm, default or lg on Avatar. The fallback text and AvatarBadge scale with it. For a size outside those three, add a size class such as size-12 on the Avatar.
Resize them before they reach the browser: serve small versions, such as 64 and 128 pixels wide, from your image service or CDN and pass that URL to AvatarImage. The avatar only crops the picture; it doesn't make the file smaller.
AvatarFallback takes its place, so the avatar never shows a broken image. Keep the fallback meaningful, the person's initials when you have them, because it is also what shows while a slow image loads.
shadcn.io's Avatar, with Badge in the count examples, styled with Tailwind CSS and Lucide icons. In React the Avatar is built on Base UI, React Aria, Ark UI or Radix UI, whichever your project uses; the Vue, Svelte and Solid versions are built on Ark UI.
Yes. Every picture has alt text, the fallback is readable text, and status, count and verified marks carry a visually hidden label because color and icons aren't announced. Decorative icons are hidden from screen readers. When the name is already next to the avatar, the avatar can stay quiet.
Yes. They render on the server with the fallback ready, and the picture takes over in the browser once it has loaded.
Tailwind CSS v4. The classes are standard utilities and theme tokens such as bg-success and text-muted-foreground, read from your theme's CSS variables.
4.9 out of 5 from 150+ developers
Every avatar example. One prompt away.
Every avatar example is free with an account. With Pro, your AI agent installs them from a prompt.
Get Pro

















