Dropzone
moleculesDrag-and-drop file area with a click and keyboard fallback to the native picker; overlay mode turns any surface into a drop target while a file hovers.
Upload attachments
accept filters dropped files by extension or mime pattern; onfiles feeds an AttachmentList with the real File objects.
Drop screenshots or PDFs or click to browse, up to 25 MB each
Overlay on a surface
overlay wraps interactive content with no box; the dashed layer paints only while a file is dragged over; onactive lets the host react.
Rollback api-gateway to 2.13
Buttons stay clickable; drag a file anywhere over this card.States
disabled, multiple={false} keeping only the first file, custom children inside the box, and a narrow zone whose label wraps.
Uploads paused Storage quota reached
One archive Only the first .zip is kept
Current: neon-rain.png
Drop the exported ledger spreadsheet for reconciliation xlsx or csv
Props
| Prop | Type | Default | Description |
|---|---|---|---|
onfiles required | (files: File[]) => void | — | |
onactive | (active: boolean) => void | — | Fired when the drag-over (active) state changes — host can dim/highlight. |
accept | string | — | |
multiple | boolean | true | |
disabled | boolean | false | |
overlay | boolean | false | Wrap interactive content; show the drop UI as an overlay only while dragging. |
label | string | 'Drop files here' | |
hint | string | 'or click to browse' | |
children | Snippet | — | |
class | string | '' | |
style | string | '' |