react-custom-scroller
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

react-custom-scroller

NPM JavaScript Style Guide

Super simple React component for creating a custom scrollbar cross-browser and cross-devices.

Check the live DEMO.

Interested in working on projects like this? Close is looking for great engineers to join our team!

Install

yarn add react-custom-scroller

Benefits

  • Extremely lightweight (less than 2KB minzipped).
  • It uses the native scroll events, so all the events work and are smooth (mouse wheel, space, page down, page up, arrows etc).
  • No other 3rd-party dependencies.
  • The performance is excellent!

Usage

import React from 'react';
import CustomScroller from 'react-custom-scroller';

const MyScrollableDiv = () => (
  <CustomScroller>Content goes here.</CustomScroller>
);

License

MIT © Close

Dependents (1)

Package Sidebar

Install

npm i react-custom-scroller

Weekly Downloads

1,721

Version

2.0.1

License

MIT

Unpacked Size

43.1 kB

Total Files

11

Last publish

Collaborators

  • buzinas