Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zzarcon/react-scroll-shadow

Pure CSS shadow to indicate more content in scrollable area
https://github.com/zzarcon/react-scroll-shadow

css height overflow pure-css react scroll scrollable scrollbar shadow

Last synced: 3 days ago
JSON representation

Pure CSS shadow to indicate more content in scrollable area

Awesome Lists containing this project

README

        

# react-scroll-shadow [![Build Status](https://travis-ci.org/zzarcon/react-scroll-shadow.svg?branch=master)](https://travis-ci.org/zzarcon/react-scroll-shadow)
> Pure CSS shadow to indicate more content in scrollable area


demo



# Demo 🍿

[https://zzarcon.github.io/react-scroll-shadow](https://zzarcon.github.io/react-scroll-shadow)

# Install 🚀

```
$ yarn add react-scroll-shadow
```

# Usage ⛏

**Basic**

```tsx
import ScrollShadow from 'react-scroll-shadow';

Content

```

**Custom**

```tsx
import ScrollShadow from 'react-scroll-shadow';

Content

```

# Api 📚

```ts
interface ShadowColors {
inactive: string;
active: string;
}

interface Props {
height?: string;
bottomShadowColors?: ShadowColors;
topShadowColors?: ShadowColors;
shadowSize?: number;
}
```

See [example/](https://github.com/zzarcon/react-scroll-shadow/tree/master/example) for full example.