Closed TroyWolf closed 2 years ago
Hello @TroyWolf , First of all, let me thank you so much for your contribution. Unfortunately, the library is made to be flexible regarding the design so it's not efficient to put a property for every single line on the code. Solution: So that's why you can path a "children" React node with your preferred design and it will override the default one on the code. Thanks again.
Thanks, @KarimMokhtar. We ended up doing exactly that--the children
approach. On a side note, your FileUploader
component might be better named FileSelector
since it is all about selecting a file or files--leaving the work of uploading the file to other code. ☕
@TroyWolf It's great to hear you solved it. Yes but i partially agree with you here we tried to select a more generic name since "selecting" is part of the uploading. Thank you so much for your suggestion and looking forward to your coding contribution on the library :)
@KarimMokhtar Maybe I'm misunderstanding, but looking at the code it doesn't seem like it is possible to disable the hoverTitle
even if we're supplying children
, i.e. the HoverTitle
component will always be rendered.
Would you accept a PR for a disableHoverTitle
property? Or is there a way to removing it using children
that I haven't figured out?
Version: 2.3.2
By default, when user drags file over drop zone, "Drop here" text appears. This is controlled with the
hoverTitle
property. For our use case, we want to disable this hover text completely. However, thehoverTitle
does not seem to provide a way to disable this completely. Setting a blank string (''
),null
, orfalse
all result in the default "Drop here" text showing. I can set to a single spacehoverTitle=' '
, but this still results in a gray dot showing upon hover.Thanks @KarimMokhtar, for creating and sharing your work!