Interactive Playground
Configure layout modes, limits, and validation rules in real-time. Drop a file to see the mapped progress bars.
Click or drag files to upload
Drag and drop BLs, loading plans, or customs declarations.
image/* • .pdf • .csv
Real-World Usage Examples
Explore implementation scenarios ranging from compact forms to custom DOM overriding.
1. Crew Passports (Button & Async Validator)
Utilizes layout="button" to save space. Bound to a custom async validator function mimicking a pre-flight resolution check for OCR.
2. Vessel Logs (Compact Form)
The layout="compact" mode provides a slim, horizontal drag-and-drop zone perfect for dense forms and data tables.
Click or drag files to upload
Drag and drop files here or click to browse.
3. Custom Gallery Rendering (List Override)
Leveraging the #file-list slot to completely reconstruct the display of queued items into a masonry grid. The slot exposes the internal files array and the remove function.
Click or drag files to upload
Drag and drop files here or click to browse.
.pdf • .dwg • image/*
4. Custom Previews (Inversion of Control)
Uses the newly exposed #preview slot to inject custom thumbnails (like a lazy-loaded PDF.js canvas or specific SVG icons) based on the file extension, while keeping the standard list layout intact.
API Reference
Complete specifications for properties, complex object types, and exposed methods.