Reusable React input file component.
npm install react-input-files> Reusable React input file component.
[![Travis][build-badge]][build]
[![Codecov Status][codecov-badge]][codecov]
[![npm package][npm-badge]][npm]
[![npm downloads][npm-downloads]][npm]
[![prettier][prettier-badge]][prettier]
[![license][license-badge]][license]
``sh`
$ yarn add react-input-files
- https://react-input-files.netlify.com/
`js
import InputFiles from 'react-input-files';
`
`js`
type Props = {
children: React.Node,
onChange: (files: Array
accept?: string,
style?: Object,
multiple?: boolean,
};
- node >= 11.9.0
- yarn >= 1.13.0
`sh`
$ yarn install --pure-lockfile
$ yarn start
`sh`
$ yarn run format
$ yarn run eslint
$ yarn run flow
$ yarn run test:watch
$ yarn run build
`bash``
$ npm version patch
$ npm run changelog
git commit & push
---
- ⇄ Pull requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
- Pull requests must be accompanied by passing automated tests.
MIT: http://michaelhsu.mit-license.org
[build-badge]: https://img.shields.io/travis/evenchange4/react-input-files/master.svg?style=flat-square
[build]: https://travis-ci.org/evenchange4/react-input-files
[npm-badge]: https://img.shields.io/npm/v/react-input-files.svg?style=flat-square
[npm]: https://www.npmjs.org/package/react-input-files
[codecov-badge]: https://img.shields.io/codecov/c/github/evenchange4/react-input-files.svg?style=flat-square
[codecov]: https://codecov.io/github/evenchange4/react-input-files?branch=master
[npm-downloads]: https://img.shields.io/npm/dt/react-input-files.svg?style=flat-square
[license-badge]: https://img.shields.io/npm/l/react-input-files.svg?style=flat-square
[license]: http://michaelhsu.mit-license.org/
[prettier-badge]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square
[prettier]: https://github.com/prettier/prettier