bytescale / bytescale-upload-widget-react

Beautiful File Upload Component | Developed for React by Bytescale
https://www.bytescale.com/docs/upload-widget/react
MIT License
73 stars 2 forks source link

Customizable UploadDropzone component #2

Closed hardcommitoneself closed 1 year ago

ljwagerfield commented 2 years ago

Hi @hardcommitoneself !

Please can you provide a little more detail, with code examples?

Thanks!

hardcommitoneself commented 2 years ago

Hi, @ljwagerfield

Can we implement the following features?

ljwagerfield commented 2 years ago

we can change the button style,

You can change the color through styles.colors.primary and the font size through styles.fontSizes.base -- see example on CodePen and documentation here. More complex changes may need to be done via CSS overrides, but am happy to hear your thoughts.

name, etc

You can also change the text by providing a custom localization object.

trigger the upload button click event from outside of the drop zone component.

Do you mean to trigger the browser's native file upload dialog to open? (Since this is what the button's click event does.) If so, then yes, we can think about adding this :)

ljwagerfield commented 1 year ago

Added support for a className prop in 3.4.0:

https://github.com/upload-io/react-uploader/releases/tag/v3.4.0