About
A drag-and-drop file upload zone with accept/reject drag states, file type and size validation, image previews, per-file upload progress, retry on failure and screen-reader announcements.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds File Dropzone to your project and fits it to your theme.
Code
How File Dropzone is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { FileDropzone } from "@/components/ui/file-dropzone";
export default function FileDropzoneDemo() {
return (
<div className="flex w-full max-w-md items-center justify-center">
<FileDropzone
accept="image/*,.pdf"
maxSize={10 * 1024 * 1024}
label="Drop files to upload"
/>
</div>
);
}















