File uploaderPro

Drag-and-drop zone with a file list where each row springs in, fills a per-file progress bar and can be removed.

About File Uploader

Drag-and-drop zone with a file list where each row springs in, fills a per-file progress bar and can be removed.

File Uploader is a animated component for React and Tailwind CSS, included in Chocolate UI Pro with motion animations that respect reduced-motion settings. It ships as 193 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • upload
  • files
  • drag and drop
  • progress
  • dropzone

Installation

  1. Set up your project with npx chocolateui init and npx chocolateui login (see the installation guide).
  2. Run the Chocolate UI CLI:
npx chocolateui add file-uploader

Dependencies installed automatically: lucide-react, motion.

Uses: motion-presets, use-reduced-motion, utils.

Usage

import FileUploader from "@/components/chocolate/file-uploader"

export default function Page() {
  return <FileUploader />
}

FAQ