@mainjs/react-custom-scrollbars

20.11.19 • Public • Published

@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!

/@mainjs/react-custom-scrollbars/

    Package Sidebar

    Install

    npm i @mainjs/react-custom-scrollbars

    Weekly Downloads

    8

    Version

    20.11.19

    License

    MIT

    Unpacked Size

    24.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • mainjs