@scrolia/react
Version:
A headless scrollbar component
15 lines • 646 B
TypeScript
import * as React from "react";
/** Hook for thumb logic. */
declare const useThumbXHandler: () => {
onPointerDown: (event: React.PointerEvent<HTMLDivElement>) => void;
};
/** Hook for thumb logic. */
declare const useThumbYHandler: () => {
onPointerDown: (event: React.PointerEvent<HTMLDivElement>) => 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