About
A user avatar that shows a photo with an initials/icon fallback, plus optional presence status dots, notification badges, and a stacked group layout for showing multiple users.
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 } from "@/components/ui/avatar";
export default function AvatarBadgeNotificationsDemo() {
return (
<div className="flex items-center gap-6">
<Avatar size="md" badgeCount={5}>
<AvatarFallback>JL</AvatarFallback>
</Avatar>
<Avatar size="md" badgeCount={25}>
<AvatarFallback>JL</AvatarFallback>
</Avatar>
<Avatar size="md" badgeCount={100}>
<AvatarFallback>JL</AvatarFallback>
</Avatar>
</div>
);
}



