Hooks & Utilities
v1.0.0Added in 1.0.0
Knows which edges of a scroll container have more content, and fades them out with a mask that eases in as you scroll.
Scroll the notification list: the top fades in as content slides under the header, a hairline appears below the title, and the bottom fade melts away as you reach the end. Swipe the category rail sideways: the edges fade the same way and the arrow buttons (on desktop) hide at each end.
npx wingo-ui@latest add use-scroll-edgesNo dependencies beyond React.
useScrollEdges({ fade: 24, threshold: 1 })