JSPM

@mr-scroll/react

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q30453F
  • License MIT

The best custom scroll for the web. This is the react wrapper.

Package Exports

  • @mr-scroll/react

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 (@mr-scroll/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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