Home > @lndsld/react-hooks > useScroll
Subscribe to scroll events
Signature:
declare function useScroll(handler: EventCallback<[Event]>, options?: UseScrollOptions): void;
Parameter | Type | Description |
---|---|---|
handler | EventCallback<[Event]> | |
options | UseScrollOptions | (Optional) |
Returns:
void