Dev Design Library

File Dropzone

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.

File Dropzone preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Dependencies
lucide-react
Install
npx shadcn add @localmode/ui/ui/data-documents/file-dropzone
Files
  • apps/ui/registry/localmode/data-documents/file-dropzone/file-dropzone.tsx
  • apps/ui/src/lib/browser-utils.ts
  • apps/ui/src/lib/utils.ts
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode