Wensity Labs

File Uploader

Forms 14

About

A drag and drop file uploader with a high contrast dropzone, image tiles, document cards and circular upload progress. Use it for attachments, media libraries and onboarding forms.

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

Code

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

Usage.tsx

"use client";

import { FileUploader } from "@/components/ui/file-uploader";

/* ───────────────────────── File Uploader, playground ──────────────────── */

const settings = {
  color: "#DC2F2F",
  buttonLabel: "Choose files",
  description: "or drop files here",
  maxFiles: 6,
  maxSizeMb: 10,
};

function mbToBytes(mb: number): number {
  return Math.round(mb * 1024 * 1024);
}

/* ───────────────────────── Preview ───────────────────────── */

export function FileUploaderPreview(props: Partial<typeof settings> = {}) {
  const state = { ...settings, ...props };

  return (
    <div className="flex w-full items-center justify-center px-6 py-10">
      <FileUploader
        key={`${state.color}-${state.maxFiles}-${state.maxSizeMb}`}
        color={state.color}
        buttonLabel={state.buttonLabel || "Choose files"}
        description={state.description || "or drop files here"}
        maxFiles={state.maxFiles}
        maxSize={mbToBytes(state.maxSizeMb)}
      />
    </div>
  );
}

/* ───────────────────────── Controls ───────────────────────── */

export default function Demo(props: Partial<typeof settings>) {
  return <FileUploaderPreview {...props} />;
}

Dependencies

More by Wensity Labs

View all
  • Sidebar

    Sidebar

    391
  • Calendar

    Calendar

    286
  • Button

    Button

    131
  • Color Picker

    Color Picker

    97
  • Image Comparison Slider

    Image Comparison Slider

    82
  • AI Prompt Input

    AI Prompt Input

    80
  • Text Morphing

    Text Morphing

    60
  • Carousel

    Carousel

    57

More in Forms

View all
  • Login 1

    Login 1

    63
  • Premium Auth

    Premium Auth

    570
  • 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