0.6.1 • Published 8 years ago
react-upload-button-v2 v0.6.1
��## 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