uploadcn

Liquid Dropzone

Component

About

A file dropzone that visually fills up like a glass of liquid as the combined upload progress of all dropped files increases.

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

Code

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

Usage.tsx

"use client";

import LiquidDropzone from "@/components/ui/liquid-dropzone";
import { mockAdapter, MiB, UploadError } from "@uploadcn/core";

/** Simulated network: ~0.6 MB/s, and files named "corrupt..." fail. */
const demoAdapter = mockAdapter({
  speed: 0.6 * MiB,
  latency: 300,
  fail: ({ file }) =>
    file.name.startsWith("corrupt")
      ? new UploadError("Connection reset while uploading", {
          code: "http",
          status: 500,
        })
      : null,
});

export default function LiquidDropzoneDemo() {
  return (
    <div className="w-full max-w-md">
      <LiquidDropzone adapter={demoAdapter} />
    </div>
  );
}

Dependencies

More by uploadcn

View all
  • Progress Ring Upload

    Progress Ring Upload

    5
  • Chat Attachments

    Chat Attachments

    1
  • Image Cropper

    Image Cropper

  • Identity Verification

    Identity Verification

  • Morphing Upload Button

    Morphing Upload Button

  • Ripple Dropzone

    Ripple Dropzone