Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable UploadDropzone component #2

Closed
hardcommitoneself opened this issue Jun 20, 2022 · 4 comments
Closed

Customizable UploadDropzone component #2

hardcommitoneself opened this issue Jun 20, 2022 · 4 comments

Comments

@hardcommitoneself
Copy link

No description provided.

@ljwagerfield
Copy link
Contributor

Hi @hardcommitoneself !

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

Thanks!

@hardcommitoneself
Copy link
Author

Hi, @ljwagerfield

Can we implement the following features?

  • customizable upload button(we can change the button style, name etc)
  • trigger the upload button click event from outside of the drop zone component.

@ljwagerfield
Copy link
Contributor

ljwagerfield commented Jun 21, 2022

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
Copy link
Contributor

Added support for a className prop in 3.4.0:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants