Skip to content

clustree/scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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>
);