Installation
Usage
Display a list of uploaded files with icons, previews, and management controls.Features
Automatic File Type Icons
Intelligent icon selection based on file type:- Images: Camera icon (green)
- PDFs: Document icon (red)
- Word Docs: Document icon (blue)
- Spreadsheets: Document icon (green)
- Code Files: Code icon (yellow)
- Videos: Video icon (purple)
- Audio: Music icon (pink)
- Archives: Archive icon (amber)
- Default: Generic file icon (gray)
Image Thumbnails
Images display actual thumbnails instead of icons:File Type Labels
Smart file type detection and display:Upload Progress
Show loading state for files being uploaded:Remove Files
X button appears on hover:Descriptions
Optional file descriptions:Responsive Layout
Files wrap naturally on smaller screens:- Images: 56px square thumbnails
- Documents: Flexible width with max 220px
- Gap spacing adjusts automatically
Props
UploadedFile Type
File Type Detection
The component intelligently detects file types:- MIME type matching: Uses standard MIME types
- Extension fallback: Checks file extension if MIME type is generic
- Smart labeling: Converts types to user-friendly labels
- Images (PNG, JPG, GIF, WebP, SVG)
- Documents (PDF, DOC, DOCX, ODT, RTF)
- Spreadsheets (XLS, XLSX, CSV, ODS)
- Code (JS, TS, PY, JAVA, C, CPP, HTML, CSS)
- Data (JSON, XML, YAML)
- Media (MP4, AVI, MOV, MP3, WAV)
- Archives (ZIP, RAR, TAR, GZ, 7Z)
Pairing with File Dropzone
These components work great together:Accessibility
- Remove buttons have descriptive
aria-labelwith filename - Icons use proper
aria-hiddenattributes - Images have alt text
- Hover states provide clear visual feedback
- Keyboard accessible remove buttons