@mr-scroll/react
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@mr-scroll/angular

npm License

The best custom scroll for the web.

This is the react wrapper. Check here (root of this repo) for an overview on mr-scroll.

Install

npm i @mr-scroll/core @mr-scroll/react

React 16 and above is supported.

Note: If you're using css-theming, check the css-theming support package.

Usage

Import the global CSS styles (for example in App.css):

@import '@mr-scroll/core/dist/styles.css';
import React, { Component } from 'react';
import Scroll from '@mr-scroll/react';

class Example extends Component {
  render() {
    return (
      <Scroll>
        Content
      </Scroll>
    );
  }
}

For more general usage info check the README in the root of this repo.

Package Sidebar

Install

npm i @mr-scroll/react

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

20.2 kB

Total Files

10

Last publish

Collaborators

  • mrahhal