File Selector Component
Custom file input styling, drag & drop areas, image previews, file lists, and upload progress indicators.
Features: Custom styled inputs, drag-and-drop support, file validation, image thumbnails, progress bars, and detailed file information display.
Basic File Input - Single File
Custom-styled file input replacing the default browser input. Click the button to select a file.
Basic File Input - Multiple Files
Select multiple files at once. The selected count will be displayed.
Drag & Drop Area - Single File
Drag and drop a file onto the area, or click to select. Visual feedback during drag operations.
Drag & Drop Area - Multiple Files
Drag and drop multiple files onto the area. Files will be listed below the dropzone.
Image Preview with Thumbnails
Select images and see thumbnail previews before uploading. Each preview has a remove button.
File List with Details
Detailed file list showing filename, size, type, and upload status with remove buttons.
File Validation (Size & Type)
Validate file size and type before accepting. Shows error messages for invalid files.
Upload Progress Indicators
Simulated upload progress with progress bars. Click "Upload Files" after selecting to see progress.
Compact Mode - Files Inside Dropzone
Professional, space-efficient layout with files displayed in a grid inside the dropzone. Add data-files-inside="true" to enable compact mode.
Ultra-Compact Mode - Form Integration
Minimalist file picker perfect for compact forms. Single-line summary that blends naturally with form fields. Drag files anywhere on the form to see the overlay expand!
- Single-line display: "๐ 3 files (2.5MB) โข Click to view details"
- Drag overlay: Drag files anywhere on form to expand dropzone
- Click file count to open positioned popover with file table
- Floating UI: Smart positioning with auto-flip and arrow
- Progress tracking: Currently uploading file shown inline
- Blends with forms: No border, minimal styling
data-files-compact="modal"
data-overlay-target="compact-form"