@clustree/scroll
v1.1.2
Published
A React custom scroll component
Readme
@clustree/scroll
Install
# Yarn
yarn add @clustree/scroll
# NPM
npm install --save @clustree/scrollUsage
// 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>
);