Shadcn File Upload

screenshot of Shadcn File Upload
nextjs
nextra
react
tailwind
shadcn-ui

This is the repo for the shadcn-ui file upload component I created

Overview

The shadcn-file-upload component is an impressive solution for React applications, designed to simplify the file upload process with a user-friendly drag-and-drop interface. Built upon the foundations of shadcn/ui and react-dropzone, this component seamlessly integrates with other elements within shadcn/ui projects, offering both versatility and adaptability for developers. Whether you need a single file upload or multiple files at once, this component is carefully crafted to meet various project requirements while ensuring a smooth user experience.

What sets this file upload component apart is its customizable nature and various layout options. It’s perfect for developers looking to enhance their projects with high-quality, consistent styling. The rhythm of working with shadcn/ui inspires its creation, and it stands as a commendable addition to any React project requiring robust file upload capabilities.

Features

  • Drag and Drop File Upload: Effortlessly enables users to upload files by dragging them directly into the designated area.
  • Vertical and Horizontal Layout Modes: Offers flexible display options, adapting to your design preferences and user interface needs.
  • Single and Multiple File Upload Modes: Supports both single file uploads for quick submissions and multiple file uploads for batch processing.
  • Customizable Text and Icons: Allows you to personalize the upload area with your own text and icons, enhancing branding consistency.
  • File Type and Size Limit Options: Specify permitted file types and set maximum file sizes to maintain control over uploads.
  • Built with shadcn/ui for Consistent Styling: Ensures the component aligns beautifully with the overall aesthetic of shadcn/ui projects.
  • Responsive Design: The design is optimized for various devices, ensuring usability across both desktops and mobile platforms.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

nextra
Nextra

Nextra is a Next.js-based static site generator optimized for documentation and blogs. It provides MDX support, automatic sidebar generation, full-text search, and beautiful themes with minimal configuration.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

shadcn-ui
Shadcn UI

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

rollup
Rollup

RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.