Package Exports
- @mainjs/react-custom-scrollbars
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mainjs/react-custom-scrollbars) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@mainjs/react-custom-scrollbars
Example
// In your React component:
render() {
return (
<Scroll
/>
);
}React Custom Scrollbars as a component?
Yes! It's really easy to custom scroll in your app as part of the component tree in your React app.
- **Want to custom scroll.
How to install
npm install @mainjs/react-custom-scrollbars --save
How to use
var React = require('react');
var Scroll = require('@mainjs/react-custom-scrollbars').default;
// ... or using import:
import React from 'react';
import { Scroll } from '@mainjs/react-custom-scrollbars';
class MyComponent extends React.Component {
render() {
return <Scroll {...props} />; // Check props in next section
}
}Props
- height (number): The height of the scroll container.
- autoScroll: Automatically scroll to the last position vs data (object)
- data (object): the data of the content.
How to contribute
Feel free to fork and send PRs or issues, be it for features, bug fixes, or documentation!