Mar 30, 2020

Introducing react-custom-scroller: a simple React component for creating custom scrollbars

by Lukáš Mladý and Vitor Buzinaro

Project link:

We’re excited to introduce the newest addition to our frontend-related open source projects. react-custom-scroller is a super simple React component for creating a custom scrollbar cross-browser and cross-devices.

Check the live DEMO.

We are taking advantage of this tiny library in our Pipeline View feature (Trello-like board), where there are multiple columns, each scrollable separately. In the Pipeline View, we also use another library that we open sourced called use-infinite-scroll, which allows us to employ a smooth content-viewing experience.


  • Extremely lightweight (less than 2KB minzipped).
  • It uses the native scroll events, so all the events work and are smooth (mouse wheel, space, page down, page up, arrows etc).
  • No other 3rd-party dependencies.
  • Excellent performance!


yarn add react-custom-scroller


The props of react-custom-scroller component are pretty straightforward:

CustomScroller.propTypes = {
  scrollDisabled: PropTypes.bool,
  innerClassName: PropTypes.string,
  className: PropTypes.string,
  children: PropTypes.node.isRequired,


import React from 'react';
import CustomScroller from 'react-custom-scroller';

export default function Example() {
  return (
    <CustomScroller className="Scroller" innerClassName="ScrollerContent">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
        veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
        commodo consequat.