Cameron Kelliher

UploadThing Paste

Component 4

About

A clipboard paste zone that accepts pasted images and files, showing upload progress and success states — ideal for quick screenshot uploads.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds UploadThing Paste to your project and fits it to your theme.

Code

How UploadThing Paste is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { UploadThingPaste } from "@/components/ui/uploadthing-paste";

export default function Default() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center bg-background p-8">
      <div className="w-full max-w-md">
        <UploadThingPaste
          accept={["image/*"]}
          onPaste={(files) => console.log("Pasted:", files)}
          onUpload={async (files) => {
            await new Promise((resolve) => setTimeout(resolve, 1500));
            console.log("Uploaded:", files);
          }}
        />
      </div>
    </div>
  );
}

More by Cameron Kelliher

View all
  • AI Chain of Thought

    AI Chain of Thought

    111
  • Helix Loader

    Helix Loader

    94
  • AI Streaming Text

    AI Streaming Text

    50
  • AI Tool Call

    AI Tool Call

    45
  • Signal Bars Loader

    Signal Bars Loader

    41
  • Glitch Text Loader

    Glitch Text Loader

    41
  • AI Prompt Diff

    AI Prompt Diff

    39
  • AI Routing Indicator

    AI Routing Indicator

    34