UNPKG

@scrolia/vanilla

Version:

A headless scrollbar component

14 lines 570 B
/** Hook for thumb logic. */ declare const useThumbXHandler: () => { onPointerDown: (event: PointerEvent) => void; }; /** Hook for thumb logic. */ declare const useThumbYHandler: () => { onPointerDown: (event: PointerEvent) => void; }; /** Result of the `useThumbXHandler` hook. */ type ThumbXHandler = ReturnType<typeof useThumbXHandler>; /** Result of the `useThumbYHandler` hook. */ type ThumbYHandler = ReturnType<typeof useThumbYHandler>; export { type ThumbXHandler, type ThumbYHandler, useThumbXHandler, useThumbYHandler }; //# sourceMappingURL=thumb.d.ts.map