UNPKG

@render-props/scrollable

Version:

A state container which provides an interface for listening to the scroll event of its child component and providing valuable data about direction, distance, and more. It also provides convenience functions for scrollTo with optional animation.

7 lines (6 loc) 226 B
import _getDirection from './getDirection' export {_getDirection as getDirection} import _getDistance from './getDistance' export {_getDistance as getDistance} import _scrollTo from './scrollTo' export {_scrollTo as scrollTo}