uploadcn

Avatar Upload

Component

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

    6
  • Chat Attachments

    Chat Attachments

    1
  • Image Cropper

    Image Cropper

  • Identity Verification

    Identity Verification

  • Liquid Dropzone

    Liquid Dropzone

  • Morphing Upload Button

    Morphing Upload Button

  • Ripple Dropzone

    Ripple Dropzone