@clustree/scroll

A React custom scroll component

Usage no npm install needed!

<script type="module">
  import clustreeScroll from 'https://cdn.skypack.dev/@clustree/scroll';
</script>

README

@clustree/scroll

Install

# Yarn
yarn add @clustree/scroll

# NPM
npm install --save @clustree/scroll

Usage

// Import styles for <ScrollY />
import '@clustree/scroll/lib/index.css';
import { ScrollY } from '@clustree/scroll';

const darkBarkground = (
  <SizedContainer>
    <ScrollY>{contents}</ScrollY>
  </SizedContainer>
);

// or for light colored backgrounds
const lightBackground = (
  <SizedContainer>
    <ScrollY dark>{contents}</ScrollY>
  </SizedContainer>
);