Folder Upload

A folder that opens as you hover or drag files over it. Dropped files fly in and file away as sheets labeled with their name and status, and the folder's front shows the upload progress.

"use client"

import { demoAdapter } from "@/examples/_demo"
import { FolderUpload } from "@/components/folder-upload"

export default function FolderUploadExample() {
  return <FolderUpload adapter={demoAdapter} name="Q3 Reports" />
}

Installation

npx shadcn@latest add @uploadcn/folder-upload

Usage

import { FolderUpload } from "@/components/folder-upload"
<FolderUpload name="Q3 Reports" maxFiles={20} />

The folder opens with CSS on hover and while dragging (group-data-dragging), and the flying files use motion. The latest three files show as sheets in the folder, each with its type icon, name and status (progress while uploading, size when done); the front counts them all. With prefers-reduced-motion, files don't fly and the folder doesn't tilt.

Props

Prop

Type

On this page

Sponsor UploadCNPut your logo in front of developers choosing how their app uploads files.