20.11.19 • Published 5 years ago

@mainjs/react-custom-scrollbars v20.11.19

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@mainjs/react-custom-scrollbars

npm version

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!

20.11.19

5 years ago

19.4.10

6 years ago

18.10.5

7 years ago

18.10.4

7 years ago

18.10.3

7 years ago

18.10.2

7 years ago

18.10.1

7 years ago

18.10.0

7 years ago