Skip to content

UI components for file uploads with React js. Files UI is a complete library for handling files in the UI. You can validate and upload them. Multilanguage. Server side support.

License

Notifications You must be signed in to change notification settings

files-ui/files-ui-react

Folders and files

NameName
Last commit message
Last commit date
Mar 28, 2023
Jan 28, 2024
Oct 3, 2024
Jan 23, 2024
Mar 27, 2023
Dec 18, 2023
Jan 21, 2024
Mar 25, 2023
Mar 25, 2023
Mar 24, 2023
Dec 18, 2023
Apr 3, 2023
Mar 24, 2023
Oct 3, 2024
Jan 28, 2024
Mar 25, 2023
Mar 25, 2023

Repository files navigation

fui-logo

Files ui

UI components for file uploads with React js.

Files UI is a complete library for handling files in the UI. You can validate and upload them.

license npm latest package kandi X-Ray PRs Welcome GitHub Repo stars Node.js CI

fui-logo

Installation

@files-ui/react is available as an npm package.

// with npm
npm i @files-ui/react
// with yarn
yarn add @files-ui/react

Usage and examples

Here is a quick example to get you started, it's all you need:

import * as React from "react";
import ReactDOM from "react-dom";
import { Dropzone, FileMosaic } from "@files-ui/react";

function App() {
  const [files, setFiles] = React.useState([]);
  const updateFiles = (incommingFiles) => {
    setFiles(incommingFiles);
  };
  return (
    <Dropzone onChange={updateFiles} value={files}>
      {files.map((file) => (
        <FileMosaic {...file} preview />
      ))}
    </Dropzone>
  );
}

ReactDOM.render(<App />, document.querySelector("#app"));

Yes, it's really all you need to get started as you can see in these live and interactive demos:

Basic Sample 🍰 Edit Button
Advanced Sample πŸ”¨ Edit Button

Main Components πŸ’ 

Full Documentation πŸ“š

You can find the complete documentation and demos for every component on files-ui.com

More Previews πŸ‘€

Image full screen preview πŸ–ΌοΈ

Image full screen preview

Video full screen preview 🎞️

Video full screen preview

FileCard, FileInputButton and Avatar preview 🎴

Video full screen preview

DarkMode πŸŒ™ 🌞

darkmode 1 preview

darkmode 2 preview

Supporters

Special thanks to these amazing people ⭐ :

πŸ‘ Stargazers

Stargazers repo roster for @files-ui/files-ui-react

πŸ‘ Forkers

Forkers repo roster for @dropzone-ui/dropzone-ui-react

License

This project is licensed under the terms of the MIT license.

Animated footer bars


Back to top