1.0.5 • Published 3 years ago

react-shadowed-double-scrollbar v1.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

React Shadowed Double Scrollbar

A simple react component for adding scrollbars on both top and bottom of content with customizable shadows.

Standalone fork of umchee/react-double-scrollbar. Fully rewritten in functional style, with the addition of shadows to make it clearer to users if an element can be scrolled (particularly useful for mobile browsers where scrollbars are hidden by default).

Storybook demo

NPM package

Usage

Setup

npm install react-shadowed-double-scrollbars

Properties

PropertyTypeRequired?DescriptionValid valuesDefault value
backgroundColorStringNoCustom background color of scrollboxAny valid css color string (color name or hex code)Depends on value of shadowVariant: off: no backgroundlight: dark background (#111111)dark: light background (#ffffff)
shadowVariantStringNoType of shadow to display on the edge of the scrollable content.light, dark, or offdark

Examples

import DoubleScrollbar from 'react-shadowed-double-scrollbar';

<DoubleScrollbar>
    <div>Your content or other components here!</div>
</DoubleScrollbar>

For additional examples and live demos, see Storybook.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago