Description
react-scrollbar is a React ScrollArea component that wraps content in a scrollable area with its own horizontal and vertical scrollbars. It supports touch, lets you drag or click the scrollbar, and scrolls smoothly, with a speed setting that controls how far the mouse wheel moves the content. You can style the scrollbars with your own CSS. An alternative build ships without the bundled styles, so you can include the stylesheet yourself and customize it without !important rules. The README says it requires React 0.13 or later and gives usage examples for React 0.14 and 0.13. It also explains how to use the component in universal apps, where the no-CSS version and a separate stylesheet are recommended. The onScroll event reports the content position and the sizes of the container and content, so a parent component can react to scrolling.…
Highlights
- Custom horizontal and vertical scrollbars
- Touch support and drag or click on the bar
- Smooth scrolling with adjustable wheel speed
- onScroll reports position and sizes
- Universal app support with a CSS option
Ratings & Reviews
No ratings yet
Be the first to rate react-scrollbar.
People also visit
react-scrollbar FAQ
What is react-scrollbar?
A React ScrollArea component with custom scrollbars that replace the browser's default ones.
Which React versions does it support?
The README says it requires React 0.13 or later and shows examples for React 0.13 and 0.14.
Can I use my own scrollbar styles?
Yes. Import the version without bundled styles and include the scrollArea CSS file yourself to customize the bars.
How do I run the example?
The README has a command that starts the example app, which is then opened on localhost port 8003.
What are the best react-scrollbar alternatives?
Popular alternatives to react-scrollbar include rc-scrollbars, react-custom-scroll and react-custom-scrollbars. See all react-scrollbar alternatives





















