@cbinsights/fds
Version:
Form: A design system by CB Insights
9 lines (8 loc) • 382 B
TypeScript
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;