I would like to hide (display: none) the scrollbar when the contents are not scrollable, i.e. when the content fits within the container. Any suggestions?
@joetidee There is a hideTracksWhenNotNeeded prop you can use.
Adding this hideTracksWhenNotNeeded does not fully hide the scrollbar container that contains the track and thumb. This means that the scrollbar container interferes with any content that is on a lower z-index to the scrollbar, for example.
Most helpful comment
Adding this
hideTracksWhenNotNeededdoes not fully hide the scrollbar container that contains the track and thumb. This means that the scrollbar container interferes with any content that is on a lower z-index to the scrollbar, for example.