uploadcn

Avatar Upload

Component 7

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")
      }
    />
  );
}

Dependencies

More by uploadcn

View all
  • Progress Ring Upload

    Progress Ring Upload

    10
  • Chat Attachments

    Chat Attachments

    2
  • Identity Verification

    Identity Verification

    1
  • Assignment Submission

    Assignment Submission

  • Document Checklist

    Document Checklist

  • Logo Upload

    Logo Upload

  • Document Upload

    Document Upload

  • Video Upload

    Video Upload