Skip to content

mainjs-public/react-custom-scrollbars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •