react-scroll-up
react-scroll-up copied to clipboard
Passing a className attribute to the DIV
First of all, thank you very much for this library. It helped us to implement this feature with so much ease. :)
Inline styles are very useful and gaining popularity over time as well. However, there are still many applications that traditionally prefer to manage all the styles with SCSS and pass to HTML well-named classes like ours. Unfortunately, this approach is not possible from my current understanding of the code of this component.
It would be very helpful to be able to pass an optional className
property to the component and be able to alter the styles from there. For example, in our case, we need to add a z-index
and some responsive behavior to it.
I saw it was discussed here https://github.com/milosjanda/react-scroll-up/issues/6, however, it would be great to at least understand a little bit better the reasons.
Thank you, Michal
Why not just pass the string to the component and put that in directly into the DIV for your own button?