@desto/scrollbar-js
Version:
A script which produces stylable scrollbars. It also allows styling of the resize handle.
21 lines (20 loc) • 525 B
TypeScript
declare type TDistance = number;
interface IConfig {
prefix?: string;
buttonDistance?: TDistance;
trackDistance?: TDistance;
delay?: number;
repeat?: number;
}
interface IScrollbarProperties {
nativeHeight: number;
nativeWidth: number;
nativeDisplaces: boolean;
supportsWebkitStyling: boolean;
supportsMsHiding: boolean;
supportsScrollbarWidth: boolean;
}
declare const scrollbarjs: {
add: ($elem: HTMLElement) => void;
init: (config?: IConfig) => IScrollbarProperties;
};