Cameron Kelliher

UploadThing Progress

Component 17

About

An upload progress indicator with linear bar, circular ring, and minimal percentage variants in three sizes.

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

Code

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

Usage.tsx

"use client";

import { UploadThingProgress } from "@/components/ui/uploadthing-progress";
import { useEffect, useState } from "react";

export default function Default() {
  const [progress, setProgress] = useState(0);

  useEffect(() => {
    const interval = setInterval(() => {
      setProgress((prev) => (prev >= 100 ? 0 : prev + 4));
    }, 200);
    return () => clearInterval(interval);
  }, []);

  return (
    <div className="flex w-full max-w-sm flex-col items-center gap-8 rounded-xl border bg-background p-8">
      <div className="w-full">
        <UploadThingProgress progress={progress} variant="bar" />
      </div>

      <UploadThingProgress progress={progress} variant="ring" size="lg" />

      <div className="w-full">
        <UploadThingProgress progress={progress} variant="minimal" />
      </div>
    </div>
  );
}

More by Cameron Kelliher

View all
  • AI Chain of Thought

    AI Chain of Thought

    126
  • Helix Loader

    Helix Loader

    106
  • AI Streaming Text

    AI Streaming Text

    58
  • AI Tool Call

    AI Tool Call

    50
  • Glitch Text Loader

    Glitch Text Loader

    48
  • Signal Bars Loader

    Signal Bars Loader

    47
  • AI Prompt Diff

    AI Prompt Diff

    46
  • Upstash Leaderboard

    Upstash Leaderboard

    45