wubocong / react-upload-file

react upload component
MIT License
28 stars 25 forks source link

Documentation should be better for custom buttons #8

Open smacktoid opened 7 years ago

smacktoid commented 7 years ago

The documentation heavily emphasises setting up custom buttons to handle selection of files, but it doesn't show any examples of what the code for such a custom button would look like.

If I don't set the custom button component properties then I do get a default button rendered, but it has no text on it. I can't see a way to simply set the display text on the default version of the button.

jpbelang commented 7 years ago

Having the same problem as others here: trying to get a custom button, none of the callbacks are tied to it.

An example would be a good idea.

tommyalvarez commented 6 years ago

Same problem, i dont understand how to set a custom choose button with the text i want. If i use

<button className='some classes'>My Text</button>

All i get is an empty button because inner content of

albangiroux commented 6 years ago

Same problem, when then element is cloned children are not cloned Hasnat modification committed on 17 May 2017 correct this BUG. You have to get this version to correct this problem..