Componentpickers4.21 KB gzipZero dependencies

File Upload List

Multi-file upload manager queue with individual file progress percentage bars, file size formatting (KB/MB), file type badges, cancel/retry/remove buttons, and overall upload count status.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add file-upload-list

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { FileUploadList } from "@/components/ui/file-upload-list"; <FileUploadList files={[{ id: "f1", name: "plan.pdf", size: 2400000, progress: 72, status: "uploading" }]} />

Source code

file-upload-list.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxfile-upload-list.tsx767 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type FileUploadStatus =  | "idle"  | "uploading"  | "success"  | "error"  | "cancelled"; export type FileCategory =  | "image"  | "pdf"  | "code"  | "audio"  | "video"

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { formatFileSize } from "@/components/ui/file-upload-list"; <formatFileSize />
PropTypeDescription
filesFileUploadItem[]Array of upload items
onCancel(id: string) => voidCallback when cancel button is clicked on an item
onRetry(id: string) => voidCallback when retry button is clicked on an item
onRemove(id: string) => voidCallback when remove button is clicked on an item
onClearCompleted() => voidCallback when "Clear Completed" button is clicked
onUploadAll() => voidCallback when "Upload All" is clicked
onCancelAll() => voidCallback when "Cancel All" is clicked
onFilesAdded(files: File[]) => voidCallback when new native files are dropped or selected
titlestringHeader title
batchIdstringBatch or queue manifest number
allowAddbooleanEnable drag-and-drop or file picker add trigger
acceptstringAccepted file formats for input picker
maxFilesnumberMax files for file picker
compactbooleanCompact density layout
classNamestringAdditional CSS classes