0.6.1 • Published 10 years ago

react-upload-button-v2 v0.6.1

Weekly downloads
654
License
MIT
Repository
github
Last release
10 years ago

��## 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:

import React from 'react';
import { render } from 'react-dom';
import UploadButton from './../build/Component.js';

function handleChange(input) {
  // eslint-disable-next-line no-console
  console.log(`Uploaded File Changed: ${input.value}`);
}

render(
  <UploadButton
    styles={{ width: '10em' }}
    className="btn smple b-gry7 whte txtc"
    onChange={handleChange}
  >
    <p className="whte">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.

License

MIT

0.6.1

10 years ago

0.6.0

10 years ago

0.5.4

10 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago