Add scroll shadow to scrollable content
npm install use-scroll-shadowFeatures
- Add top shadow when content scrolled
- Hide bottom shadow when content hit bottom
- Observe scroll element height, if it's not scrollable, will hide shadows
```
npm i use-scroll-shadow
`typescript
import React from 'react';
import { useScrollShadow } from 'use-scroll-shadow';
import 'use-scroll-shadow/lib/index.css'; // don't forget import css
// example
function App() {
const { elementRef } = useScrollShadow();
return (
By default, it will find the element's parent element as the wrapper element.
But in some special cases, you may want to define it to another element:
`typescript
// get and define the wrapperRef
const { wrapperRef, elementRef } = useScrollShadow();
``