About
A drag-and-drop dropzone for uploading files that also opens the native file picker when clicked, with Arabic RTL label and hint text.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds File Upload to your project and fits it to your theme.
Code
How File Upload is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import FileUpload from "@/components/ui/file-upload";
export default function FileUploadDemo() {
return (
<div dir="rtl" className="w-full max-w-md mx-auto p-6">
<FileUpload
onFilesSelected={(files) => {
console.log(
"Selected files:",
Array.from(files).map((f) => f.name),
);
}}
/>
</div>
);
}







