react-scrollpad
<ScrollPad/> - get scrollbar with padding (when overflown)
installation
npm install --save react-scrollpad
Usage
import React from 'react';import render from 'react-dom'; import ScrollPad from 'react-scrollpad'; const App = <div ="wrapper"> <ScrollPad> <div> <p>Scroll</p> <p>Scroll</p> <p>Scroll</p> ... </div> </ScrollPad> </div>; ;
Available props
prop | type | default |
---|---|---|
style | PropTypes.object | {} |
rtl | PropTypes.bool | false |
pad | PropTypes.string | 20px |
className | PropTypes.string |