Skip to content

A modern, customizable file input component built with ShadCN and react-hook-form, featuring drag-and-drop support and a sleek UI.

Notifications You must be signed in to change notification settings

vikramsamak/shadcn-file-input-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 

Repository files navigation

ShadCN File Input

A modern, customizable file input component built with ShadCN and react-hook-form, featuring drag-and-drop support and a sleek UI.

🚀 Features

  • 📂 Drag & Drop File Upload
  • 🎨 Fully Themed with ShadCN UI
  • 🔥 Supports Single & Multiple File Selection
  • 🌙 Dark Mode Compatible
  • Animated and Accessible

📸 Preview

ShadCN File Input Demo

🛠 Installation

npx shadcn@latest add shadcn-file-input-extended.vercel.app/file-input.json

🔧 Usage

<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>
  )}
/>

🤝 Contributing

💡 Contributions Welcome! Feel free to open issues or submit PRs.

📬 Have questions? Reach out via email.

Made with ❤️ using shadcn/ui

About

A modern, customizable file input component built with ShadCN and react-hook-form, featuring drag-and-drop support and a sleek UI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published