BosNaufal / react-scrollbar

The Simplest Scroll Area Component with custom scrollbar for React JS. https://bosnaufal.github.io/react-scrollbar
MIT License
71 stars 30 forks source link

A few enhancements? #15

Open aprilmintacpineda opened 7 years ago

aprilmintacpineda commented 7 years ago

Can we just provide more props to customize the scrollbar? such as

usulpro commented 7 years ago

Hi! Can't we set all of this through css? (except Thickness)

alaindresse commented 7 years ago

It seems to me that even the thickness can be set through css (it corresponds to the size variable in the source code).

aprilmintacpineda commented 7 years ago

But wouldn't it be a more efficient library if we don't mess the its css? I find it more interesting and efficient if we can just do something like

<ScrollBar bar-thickness={3} trail-visibility="always (or maybe onScrollOnly|never)" blah blah>
   Children here
</ScrollBar>