miladjoodi

File Upload

Forms

About

A drag-and-drop file uploader with image previews, upload progress bars, and file type/size validation for forms.

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

Code

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

Usage.tsx

"use client";

import { FileUpload } from "@/components/ui/file-upload";

export default function FileUploadDemo() {
  return (
    <div className="w-full max-w-md p-4">
      <FileUpload id="upload" accept="image/*,.pdf" maxSize={2 * 1024 * 1024} />
    </div>
  );
}

Dependencies

More by miladjoodi

View all
  • Image Diff Slider

    Image Diff Slider

    32
  • Empty State

    Empty State

  • Signature Pad

    Signature Pad

  • Hover Card

    Hover Card

  • Card

    Card

  • Drag Scroll

    Drag Scroll

  • Native Select

    Native Select

  • Context Menu

    Context Menu

More in Forms

View all
  • Login 1

    Login 1

    64
  • Premium Auth

    Premium Auth

    571
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35