
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@xico2k/react-scroll-area
Advanced tools
[](https://travis-ci.org/xiCO2k/react-scroll-area) [](https://npmcharts.com/compare/@xico2k/react
A scroll area wrapper to mimic Facebook Scroll Area
With npm:
$ npm i @xico2k/react-scroll-area
or with yarn:
$ yarn add @xico2k/react-scroll-area
On your component add:
import ScrollArea from '@xico2k/react-scroll-area';
To render:
<ScrollArea>
Some Content
</ScrollArea>
All props are optional.
Name | Type | Default | Description |
---|---|---|---|
width | string / number | Ex: 100% / 100px / 100 | |
height | string / number | Ex: 100% / 100px / 100 | |
trackHidden | bool | false | |
trackHideTime | int | 1000 | Milliseconds |
minHandlerHeight | int | 70 | Pixels |
trackMargin | int | 4 | Pixels |
onScroll | func | callback with { scrollTop: 50, innerHeight: 100, outerHeight: 50, complete: 0.5 } | |
className | string | class added to the outer container | |
innerClassName | string | class added to the inner container | |
overflowClassName | string | class added to the overflow container | |
trackClassName | string | class added to the track container | |
handlerClassName | string | class added to the handler container |
FAQs
[](https://travis-ci.org/xiCO2k/react-scroll-area) [](https://npmcharts.com/compare/@xico2k/react
The npm package @xico2k/react-scroll-area receives a total of 44 weekly downloads. As such, @xico2k/react-scroll-area popularity was classified as not popular.
We found that @xico2k/react-scroll-area 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.