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
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add file-upload-listOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| files | FileUploadItem[] | Array of upload items |
| onCancel | (id: string) => void | Callback when cancel button is clicked on an item |
| onRetry | (id: string) => void | Callback when retry button is clicked on an item |
| onRemove | (id: string) => void | Callback when remove button is clicked on an item |
| onClearCompleted | () => void | Callback when "Clear Completed" button is clicked |
| onUploadAll | () => void | Callback when "Upload All" is clicked |
| onCancelAll | () => void | Callback when "Cancel All" is clicked |
| onFilesAdded | (files: File[]) => void | Callback when new native files are dropped or selected |
| title | string | Header title |
| batchId | string | Batch or queue manifest number |
| allowAdd | boolean | Enable drag-and-drop or file picker add trigger |
| accept | string | Accepted file formats for input picker |
| maxFiles | number | Max files for file picker |
| compact | boolean | Compact density layout |
| className | string | Additional CSS classes |