UNPKG

@cbinsights/fds

Version:
9 lines (8 loc) 382 B
import { RefObject } from 'react'; export declare type ScrollAttributes = { scrollStart: boolean; scrollEnd: boolean; }; export declare const getScrollAttributes: (scrollLeft: number, clientWidth: number, contentScrollWidth: number) => ScrollAttributes; declare const useScrollAttributes: (ref: RefObject<HTMLElement>) => Array<boolean>; export default useScrollAttributes;