main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
585 bytes
|
Line | |
---|
1 | import { UserScrollConfig, Handler, EventTypes } from '@use-gesture/core/types';
|
---|
2 | /**
|
---|
3 | * Scroll hook.
|
---|
4 | *
|
---|
5 | * @param {Handler<'scroll'>} handler - the function fired every time the scroll gesture updates
|
---|
6 | * @param {UserScrollConfig} config - the config object including generic options and scroll options
|
---|
7 | */
|
---|
8 | export declare function useScroll<EventType = EventTypes['scroll'], Config extends UserScrollConfig = UserScrollConfig>(handler: Handler<'scroll', EventType>, config?: Config): Config["target"] extends object ? void : (...args: any[]) => import("./types.js").ReactDOMAttributes;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.