boardui

File Upload

Component

About

A drag-and-drop file upload dropzone with extension/size validation, an animated progress ring, and a completion callback.

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

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

export default function FileUploadCustomIconDemo() {
  return (
    <div className="flex w-full max-w-[560px] items-center justify-center p-8">
      <FileUpload
        renderFileIcon={() => (
          <RiFileCloudLine
            className="size-6 text-foreground-icon-secondary"
            aria-hidden
          />
        )}
      />
    </div>
  );
}

Dependencies

More by boardui

View all
  • Social Button

    Social Button

    3
  • Modal Dialog

    Modal Dialog

    1
  • Segmented Control

    Segmented Control

  • Date Calendar

    Date Calendar

  • Select

    Select

  • Composer Loader

    Composer Loader

  • Slider

    Slider

  • Context Menu

    Context Menu