About
A user or entity profile picture that falls back to initials or an icon, with optional size, shape, color tint, status badge, and stacked group variants.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Avatar to your project and fits it to your theme.
Code
How Avatar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
Avatar,
AvatarFallback,
AvatarGroup,
AvatarGroupCount,
} from "@/components/ui/avatar";
export default function AvatarGroupDemo() {
return (
<div className="flex w-full items-center justify-center p-10">
<AvatarGroup>
<Avatar color="indigo">
<AvatarFallback>AV</AvatarFallback>
</Avatar>
<Avatar color="blue">
<AvatarFallback>BL</AvatarFallback>
</Avatar>
<Avatar color="green">
<AvatarFallback>GR</AvatarFallback>
</Avatar>
<Avatar color="pink">
<AvatarFallback>PK</AvatarFallback>
</Avatar>
<AvatarGroupCount>+4</AvatarGroupCount>
</AvatarGroup>
</div>
);
}


