A modern, customizable file input component built with ShadCN and react-hook-form, featuring drag-and-drop support and a sleek UI.
- π Drag & Drop File Upload
- π¨ Fully Themed with ShadCN UI
- π₯ Supports Single & Multiple File Selection
- π Dark Mode Compatible
- β¨ Animated and Accessible
npx shadcn@latest add shadcn-file-input-extended.vercel.app/file-input.json
<FormField
control={form.control}
name="files"
render={({ field }) => (
<FormItem>
<FormLabel>Upload Files</FormLabel>
<FormControl>
<FileInput
field={field}
accept="image/png, image/jpg"
multiple={true}
showDropzone={true} // Optional
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
π‘ Contributions Welcome! Feel free to open issues or submit PRs.
π¬ Have questions? Reach out via email.
Made with β€οΈ using shadcn/ui