About
A round profile-photo uploader that crops the image to a square and shows upload progress as a ring around the avatar.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Avatar Upload to your project and fits it to your theme.
Code
How Avatar Upload is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { AvatarUpload } from "@/components/ui/avatar-upload";
import { toast } from "sonner";
export default function AvatarUploadExample() {
return (
<AvatarUpload
onChange={(item) =>
toast(item ? "Profile photo updated" : "Profile photo removed")
}
/>
);
}






