# react-upload-button-v2

> Upload Button

Latest version **0.6.1** (published 2016-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-upload-button-v2
pnpm add react-upload-button-v2
yarn add react-upload-button-v2
bun add react-upload-button-v2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.1 |
| Published | 2016-07-23 |
| First published | 2016-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Michael Petrochuk |
| Maintainers | deepblue129 |
| Keywords | react-component, react |

## Links

- npm: https://www.npmjs.com/package/react-upload-button-v2
- Repository: https://github.com/Deepblue129/upload-button
- Issues: https://github.com/Deepblue129/upload-button/issues
- npm.io page: https://npm.io/package/react-upload-button-v2

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^15.2.1
- [react-dom](https://npm.io/package/react-dom.md) ^15.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.6.1 (latest) — 2016-07-23
- 0.6.0 — 2016-07-23
- 0.5.4 — 2016-07-11
- 0.5.3 — 2016-07-11
- 0.5.2 — 2016-07-11
- 0.5.1 — 2016-07-11
- 0.5.0 — 2016-07-11
- 0.0.3 — 2016-03-22
- 0.0.2 — 2016-03-06
- 0.0.1 — 2016-03-06

## README

��## Synopsis

A React Component for an upload button which allows for custom styling. 

## Code Example

Download from NPM `npm install react-upload-button-v2 --save`

Then include the component into your react like so:
```javascript
import React from 'react';
import { render } from 'react-dom';
import UploadButton from 'react-upload-button-v2';
import UploadButtonStyles from 'react-upload-button-v2/build/styles.css';
// or import UploadButtonStyles from 'react-upload-button-v2/component/styles.scss';

function handleChange(input) {
  console.log(`Uploaded File Changed: ${input.value}`);
}

render(
  <UploadButton
    style={{ width: '10em' }}
    className="button"
    onChange={handleChange}
  >
    <p>Upload</p>
  </UploadButton>,
  document.getElementById('entry')
);
```

## Get Started

Download from NPM `npm install react-upload-button-v2 --save`

## Motivation 

http://stackoverflow.com/questions/21842274/cross-browser-custom-styling-for-file-upload-button

It is notoriously annoying to work with a simple upload button on the web.

http://stackoverflow.com/questions/7358781/tapping-on-label-in-mobile-safari

Simple upload buttons have headaching IOS bugs.

## License

MIT

---
_Source: https://npm.io/package/react-upload-button-v2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
