Ecosyste.ms: Awesome

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

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: 2 months ago
JSON representation

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

Lists

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
);
}
```