Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-customscroll

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-customscroll - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "react-customscroll",
"version": "1.0.3",
"version": "1.0.4",
"description": "This is little component for custom scroll in React",

@@ -5,0 +5,0 @@ "main": "dist/customscroll.js",

@@ -16,4 +16,27 @@ # React Custom Scroll

Example:
[Example](http://natrube.net/custom-scroll/index.html)
[Example](http://natrube.net/custom-scroll/index.html)
## How usage
### Step 1:
```
npm install react-customscroll -save
```
### Step 2:
Inject component on your page:
import 'react-customscroll/dist/styles.css';
import CustomScroll from 'react-customscroll';
### Step 3:
Paste CustomScroll component inside wrapper block with height and overlow: hidden
For example:
```
<div style={{height: '500px', overflow: 'hidden'}}>
<CustomScroll>
...
</CustomScroll>
</div>
```
See more examples in <strong>example/index.html</strong>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc