About
A user profile image with automatic initials/icon fallback, status badge, and grouping for stacking multiple avatars in a row.
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, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
import { UserFilled } from "@appica/icons-react";
export default function AvatarFallbackExample() {
return (
<div className="flex h-screen w-full items-center justify-center gap-4 bg-background">
<Avatar size="lg">
<AvatarImage src="/avatars/does-not-exist.jpg" alt="Sarah Jenkins" />
<AvatarFallback>SJ</AvatarFallback>
</Avatar>
<Avatar size="lg">
<AvatarFallback>MR</AvatarFallback>
</Avatar>
<Avatar size="lg">
<AvatarFallback>
<UserFilled />
</AvatarFallback>
</Avatar>
</div>
);
}







