Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sanusart/react-scrollpad

<ScrollPad/> - get scrollbar with padding (when overflown)
https://github.com/sanusart/react-scrollpad

react reactjs scrollbar

Last synced: 23 days ago
JSON representation

<ScrollPad/> - get scrollbar with padding (when overflown)

Awesome Lists containing this project

README

        

# react-scrollpad
> <ScrollPad/> - get scrollbar with padding (when overflown)

### installation

> `npm install --save react-scrollpad`

### Usage

```jsx
import React from 'react';
import {render} from 'react-dom';

import ScrollPad from 'react-scrollpad';

const App = () => (


Scroll


Scroll


Scroll


...


);

render(, document.getElementById("root"));
```

### Available props

**prop**|**type**|**default**
:-----:|:-----:|:-----:
style | PropTypes.object | {}
rtl | PropTypes.bool | false
pad | PropTypes.string | 20px
className | PropTypes.string |

### Demo

> https://sanusart.github.io/react-scrollpad/