L
LocalMode

File Dropzone · LocalMode

A generic, format-agnostic drag-and-drop + click-to-browse upload zone for non-image files (PDF/CSV/JSON/vector exports). Validates each file with a bundled validateFile helper (copy-owned — no @localmode dependency) against an accept MIME list and maxSize, emitting only valid files via onUpload; rejected files go to onReject. Disabled/processing overlay blocks input. Distinct from media-vision's MediaDropzone (no image-preview semantics).

npx shadcn@latest add https://localmode.ai/r/ui/data-documents/file-dropzone.json
Preview File Dropzone on LocalMode's site (opens in a new tab)
Loading the source for ui/data-documents/file-dropzone…

ui/data-documents/file-dropzone