@wix/design-system
Version:
@wix/design-system
26 lines • 1.03 kB
TypeScript
import React, { ReactNode, RefObject } from 'react';
import { FloatingScrollBarState } from './FloatingScrollBarState';
declare class FloatingScrollBarContextValue {
viewportRef: undefined | {
current: HTMLElement | null;
};
scrollableContentRef: {
current: HTMLElement | null;
};
scrollElementRef: {
current: HTMLElement | null;
};
floatingScrollBarStateRef: {
current: FloatingScrollBarState | null;
};
}
export declare const FloatingScrollBarContext: React.Context<FloatingScrollBarContextValue>;
export declare const useFloatingScrollBarContext: () => FloatingScrollBarContextValue;
export declare function FloatingScrollBarContextProvider({ children, scrollableContentRef, viewportRef, scrollElementRef, }: {
children: ReactNode;
viewportRef?: RefObject<HTMLElement>;
scrollableContentRef: RefObject<HTMLElement>;
scrollElementRef: RefObject<HTMLElement>;
}): React.JSX.Element;
export {};
//# sourceMappingURL=FloatingScrollBarContext.d.ts.map