Components
ScrollFade
A gradient fade overlay for scroll containers. Place inside a relatively positioned container to indicate more content.
Usage
Best practices
Drop
ScrollFadeinside aposition: relativescroll container instead of hand-writing a gradient - it renders the masked scrim for you (it'saria-hidden, purely decorative).Match
themeto the container's actual background (card/popover/…) - the scrim fades to that colour, so a mismatch leaves a visible seam.Set
position(start/end) andorientationto the edge with hidden content -end+verticalis the common "more below" bottom fade.
Props
Also exports
- interface
ScrollFadeProps
Composition
Used by