About
A circular user avatar that shows a profile image, falls back to initials or a generic person icon, and can display an online/offline/busy status dot; includes an AvatarGroup for stacking multiple avatars with an overflow count.
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 from "@/components/ui/avatar";
export default function AvatarDemo() {
return (
<Avatar
src="https://cdn.21st.dev/assets/mirror/51/511e8a28ad384d1692e249771c5da88414ce778aec74ea21451d519db92e0038.jpg"
alt="A person"
name="Ada Lovelace"
size="lg"
/>
);
}






