Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/closeio/react-custom-scroller

Super simple React component for creating a custom scrollbar cross-browser and cross-devices.
https://github.com/closeio/react-custom-scroller

custom-scrollbar react reactjs scrollbar scrolling

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# react-custom-scroller

[![NPM](https://img.shields.io/npm/v/react-custom-scroller.svg)](https://www.npmjs.com/package/react-custom-scroller) [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-success)](https://prettier.io)

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

[**Check the live DEMO**](https://closeio.github.io/react-custom-scroller/).

###

Interested in working on projects like this? [Close](https://close.com) is looking for [great engineers](https://jobs.close.com) to join our team!

## Install

```bash
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

```jsx
import React from 'react';
import CustomScroller from 'react-custom-scroller';
import 'react-custom-scroller/dist/index.css';

const MyScrollableDiv = () => (
Content goes here.
);
```

## License

MIT © [Close](https://github.com/closeio)