@oiij/use
Version:
Som Composable Functions for Vue 3
15 lines (14 loc) • 534 B
TypeScript
import * as vue36 from "vue";
//#region src/composables/use-scroll-view.d.ts
interface ScrollViewOptions {
activeClassName?: string;
enableWheel?: boolean;
direction?: 'horizontal' | 'vertical';
}
declare function useScrollView(options?: ScrollViewOptions): {
scrollRef: vue36.Ref<HTMLElement | undefined, HTMLElement | undefined>;
scrollToView: (options?: ScrollIntoViewOptions) => Promise<void>;
};
type UseScrollViewReturns = ReturnType<typeof useScrollView>;
//#endregion
export { UseScrollViewReturns, useScrollView };