Homelogologo
Sponsor

ScrollShadow

Display shadows to signal scrollable overflow, automatically updating with scroll position.

Usage

Brief guide to importing and setting up ScrollShadow component.

import { ScrollShadow } from "@elemnts-ui/react"
<ScrollShadow> <Text> {...content} </Text> </ScrollShadow>

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

PropTypeDefault
isEnabledbooleantrue
hideScrollbarbooleantrue
asChildboolean-
sizenumber40
VariableDescription
--scroll-shadow-end-colorThe color of the end shadow.
--scroll-shadow-start-colorThe color of the start shadow.