
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
smooth-scrollbar-react
Advanced tools
A wrapper for smooth-scrollbar to React Component.
http://smooth-scrollbar-react.surge.sh
To install the stable version you can use:
$ yarn add smooth-scrollbar-react
import Scrollbar from 'smooth-scrollbar-react';
<Scrollbar
damping={number},
thumbMinSize={number},
syncCallbacks={boolean},
renderByPixels={boolean},
alwaysShowTracks={boolean},
continuousScrolling={boolean},
wheelEventTarget={element},
plugins={object},
onScroll={func},
>
your contents here...
</Scrollbar>
| parameter | type | default | description |
|---|---|---|---|
| damping | number | 0.1 | Momentum reduction damping factor, a float value between (0, 1). The lower the value is, the more smooth the scrolling will be (also the more paint frames). |
| thumbMinSize | number | 20 | Minimal size for scrollbar thumbs. |
| renderByPixels | boolean | true | Render every frame in integer pixel values, set to true to improve scrolling performance. |
| alwaysShowTracks | boolean | false | Keep scrollbar tracks visible. |
| continuousScrolling | boolean | true | Set to true to allow outer scrollbars continue scrolling when current scrollbar reaches edge. |
| plugins | object | {} | Options for plugins, see Plugin System. |
Confusing with the option field? Try edit tool here!
...
render() {
return
<div className="App">
<div className="list-data">
{[...Array(20).keys()]
.map((value, index) => <div key={index}>{value + index}</div>)}
</div>
</div>
}
...
import Scrollbar from 'smooth-scrollbar-react';
...
render() {
return
<div className="App">
<Scrollbar>
<div
className="list-data"
style={{ height: '200px' }}
>
{[...Array(20).keys()]
.map((value, index) => <div key={index}>{value + index}</div>)}
</div>
</Scrollbar>
</div>
}
...
display: flex) import Scrollbar from 'smooth-scrollbar-react';
...
render() {
return
<div className="App">
<div className="list-data" style={{ display: 'flex', maxHeight: '200px' }}>
<Scrollbar>
{[...Array(20).keys()]
.map((value, index) => <div key={index}>{value + index}</div>)}
</Scrollbar>
</div>
</div>
}
...
MIT © Nghiep
FAQs
A wrapper for smooth-scrollbar to React Component
We found that smooth-scrollbar-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.