svelte-magic-scroller
Version:
[](https://www.npmjs.com/package/svelte-magic-scroller) [](https://www.npmjs.com/package/svelte-magic-scrolle
36 lines (35 loc) • 1.03 kB
TypeScript
export default MagicScrollbarThumb;
type MagicScrollbarThumb = {
$on?(type: string, callback: (e: any) => void): () => void;
$set?(props: Partial<$$ComponentProps>): void;
};
declare const MagicScrollbarThumb: import("svelte").Component<{
component: any;
currentIndex?: number;
currentY?: number;
height?: number;
isDragging?: boolean;
maxThumbTravel?: number;
minThumbTravel?: number;
startY?: number;
thumbHeight?: number;
thumbPosition?: number;
width?: number;
goto: any;
size: any;
}, {}, "width" | "height" | "currentIndex" | "currentY" | "isDragging" | "maxThumbTravel" | "minThumbTravel" | "startY" | "thumbHeight" | "thumbPosition">;
type $$ComponentProps = {
component: any;
currentIndex?: number;
currentY?: number;
height?: number;
isDragging?: boolean;
maxThumbTravel?: number;
minThumbTravel?: number;
startY?: number;
thumbHeight?: number;
thumbPosition?: number;
width?: number;
goto: any;
size: any;
};