Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omidnikrah/use-file-dialog

Open file dialog without struggling with file input using useFileDialog react hook
https://github.com/omidnikrah/use-file-dialog

Last synced: about 1 month ago
JSON representation

Open file dialog without struggling with file input using useFileDialog react hook

Awesome Lists containing this project

README

        

# React `useFileDialog` hook
[![NPM](https://img.shields.io/npm/v/use-file-dialog.svg)](https://www.npmjs.com/package/use-file-dialog)

Open file dialog without struggling with file input using useFileDialog react hook.

## Install

You can install `use-file-dialog` with NPM or Yarn.

```bash
npm install use-file-dialog
```

```bash
yarn add use-file-dialog
```

## Usage

Here's how to use `use-file-dialog`:

```jsx
import useFileDialog from "use-file-dialog";

function App() {
const { files, openFileDialog } = useFileDialog();

console.log(files);

return (
Choose file
);
}
```