Home Components Avatar
React Avatar Components
21 free React avatars built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for user images, initials fallbacks, groups, and status dots.
Avatar 1 : Basic circular avatar with a profile photo and an initials fallback when the image fails.Avatar 2 : Circular avatar outlined with a two pixel ring in the theme ring colour.Avatar 3 : Square avatar with slightly rounded corners instead of a circle, with an initials fallback.Avatar 4 : Larger 48 pixel avatar showing a profile photo with an initials fallback.Avatar 5 : Initials-only avatar that shows the person's name and role in a tooltip on hover.Avatar 6 : Icon avatar with a briefcase icon on a light emerald background, for teams or departments.Avatar 7 : Avatar with a small green status dot in the bottom corner to show availability.Avatar 8 : Avatar with an emerald ring and a check badge, marking a verified or selected user.Avatar 9 : Rounded-square avatar with an amber status dot placed on the top-right corner.Avatar 10 : Avatar with a plus-circle button on the bottom-right corner for an invite action.Avatar 11 : Avatar with a dark numeric count badge on the top-right, like a notification counter.Avatar 12 : Avatar with a blue verified checkmark badge on the top-right corner.Avatar 13 : Overlapping avatar stack of four people where each face shows a name tooltip on hover.Avatar 14 : Avatar group of four overlapping photos followed by a +6 overflow count bubble.Avatar 15 : Stack of four large 48 pixel overlapping avatars with rings and a soft shadow.Avatar 16 : Overlapping avatar stack where each avatar lifts up with a shadow when hovered.Avatar 17 : Overlapping avatar stack that spreads apart when the whole group is hovered.Avatar 18 : Avatar stack that fans out on group hover with an animated margin and name tooltips.Avatar 19 : Avatar stack showing three faces and a plus button that opens a dropdown of remaining people.Avatar 20 : Pill-shaped container with overlapping avatars, name tooltips and a +3 more teammates count.Avatar 21 : Social proof pill with tiny overlapping avatars and a Used by 12K+ product teams line.
About React Avatar Components A React avatar is a small image that represents a user or account, with a fallback such as initials when the image is missing. Watermelon UI avatars are built on the Radix UI Avatar primitive with Tailwind CSS, so the fallback only shows while the image loads or if it fails. Add one with the shadcn CLI, then adjust size and shape with Tailwind classes.
When to use it Comment threads, chat messages, and activity feeds that show who did what. Account menus in a navbar or sidebar. Stacked groups of team members or collaborators on a card. When to use something else Use Badge when you need a text label for a status or role, not a picture of a person. Use Tooltip when the avatar is already there and you only need to show the person’s name on hover. Frequently asked questions How do I show initials when the avatar image fails to load? Put the initials inside AvatarFallback next to AvatarImage. Radix shows the fallback while the image is loading and keeps it if the image errors.
How do I change the size of a shadcn avatar? Pass Tailwind size classes to the Avatar root, for example className="size-12". The image and fallback fill the root, so they scale with it.
How do I make a square avatar instead of a circle? Override the rounding on the Avatar root, for example className="rounded-md". Apply the same class to AvatarImage and AvatarFallback if they keep their own rounding.
How do I stack avatars in a group? Wrap them in a flex container with a negative space class such as -space-x-2. Add a ring in the background color to each avatar so the overlaps stay readable.
How to use React Avatar Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/avatar-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: lucide-react.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .