Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA drag-and-drop upload zone with a continuous-corner dashed edge that marches on hover, a glow that tracks the pointer and an icon that leans magnetically toward the cursor or dragged file. Dropped or browsed files get image thumbnails, per-file progress rings and bars, cancel, retry and clear error rows for wrong types or oversize files, with a shake when something is rejected. Ships as panel, compact and gallery grid variants, works fully from the keyboard with Enter or Space, announces changes politely to screen readers and accepts your own upload function with progress callbacks and abort signals.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { FileDropzoneUpload } from "@/components/hyperblur-pro/file-dropzone-upload"
<FileDropzone
accept="image/*,.pdf"
maxSize={20 * 1024 * 1024}
upload={(file, onProgress, signal) => myUpload(file.file!, onProgress, signal)}
onFilesChange={(files) => setFiles(files)}
/>
<FileDropzone variant="compact" />
<FileDropzoneUpload />| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "panel" | "compact" | "grid" | "panel" | FileDropzone: large panel with list, single-row compact bar, or thumbnail grid. |
| accept | string | "image/*,.pdf,.zip,.fig" | Allowed MIME types and extensions, same format as the input accept attribute. |
| maxSize | number | 10485760 | Largest allowed file in bytes. Bigger files show an error row. |
| maxFiles | number | 12 | FileDropzone: most files kept in the list. |
| upload | (file, onProgress, signal) => Promise<void> | simulated | FileDropzone: your uploader. Call onProgress(0 to 100), reject to show an error, honor the abort signal on cancel. |
| onFilesChange | (files: DropFile[]) => void | undefined | FileDropzone: called with the current list and statuses. |
| magnet | boolean | true | FileDropzone: icon follows the pointer with a springy lean. |
| accent | string | "#5b5bff" | Highlight color for the icon, edge and progress. |
| appearance | "light" | "dark" | "light" | Surface colors. |
| images | string[] | 5 Unsplash photos | FileDropzoneUpload: preview images used by the demo files. |
Source code is included in Pro and above