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

This is little component for custom scroll in React

  • 4.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
115
decreased by-21.77%
Maintainers
1
Weekly downloads
 
Created
Source

React Custom Scroll 4.0

This is little component for custom scroll in React. It is very customizable and flexible component. You can customization scrollbar.

Demo

Features:

  • Without dependency
  • Very simple and flexible
  • Very small size (9kb)
  • Easy customization, easy api
  • Keyboard bind
  • Reinitialize after all mutation events
  • Mobile compatibility
  • Animate scrollTo feature
  • min-height and max-height compatibility
  • simple customizations
  • hide default scrollbars in Mac
  • support React-sortable-tree / React-virtualized

How usage

Step 1:

npm install react-customscroll -save

Step 2:

Inject component on your page:

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 example/index.js

License

MIT

FAQs

Package last updated on 21 May 2018

Did you know?

Socket

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.

Install

Related posts

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