ScrollShadow
Display shadows to signal scrollable overflow, automatically updating with scroll position.
Usage
Brief guide to importing and setting up ScrollShadow component.
Orientation
To see the shadows, make the content overflow the ScrollShadow component vertically or horizontally.
Custom size
Adjust the shadow size by setting the size prop.
With Surface
Use ScrollShadow with the Surface component.
API reference
| Prop | Type | Default |
|---|---|---|
| isEnabled | boolean | true |
| hideScrollbar | boolean | true |
| asChild | boolean | - |
| size | number | 40 |
| Variable | Description |
|---|---|
| --scroll-shadow-end-color | The color of the end shadow. |
| --scroll-shadow-start-color | The color of the start shadow. |

