UNPKG

@ducor/react

Version:

admin template ui interface

19 lines (18 loc) 645 B
import { Size } from '.'; import { ScrollTo } from '@ducor/hooks/dist/use-scroll'; export interface ScrollOffset { x: number; y: number; } interface ScrollAreaContextValue { direction: "both" | "col" | "row"; size: Size; scrollOffset: ScrollOffset; setScrollOffset: (scrollOffset: ScrollOffset) => void; scrollTo: (scroll: ScrollTo) => void; scrollPercent: ScrollOffset; setScrollPercent: (scrollPosition: ScrollOffset) => void; } export declare const ScrollAreaContext: import("react").Context<ScrollAreaContextValue | undefined>; export declare const useScrollArea: () => ScrollAreaContextValue; export {};