react-scrollable-component
Component for custom scrollbar
Install
npm install --save react-scrollable-component
Usage
Props
scrollThumbStyle?: React.CSSProperties // Style of the scrollthumb. You can not change the height, top, right and position properties.maxHeight?: number // The maximum height of the scrollable containerclassName?: string // Name of the scrollable container classhiddenIfNotUsed?: boolean // Property to hide the scrollbar when there is no mouse wheel action (default false)
Note
This component will use the default scrollbar on mobile devices and tablets
License
MIT © make1986