UNPKG

@oiij/use

Version:

Som Composable Functions for Vue 3

16 lines (15 loc) 595 B
import * as vue67 from "vue"; import { TemplateRef } from "vue"; //#region src/composables/use-scroll-view.d.ts type ScrollViewOptions = { activeClassName?: string; enableWheel?: boolean; direction?: 'horizontal' | 'vertical'; }; declare function useScrollView(templateRef: TemplateRef<HTMLElement>, options?: ScrollViewOptions): { templateRef: Readonly<vue67.ShallowRef<HTMLElement | null>>; scrollToView: (options?: ScrollIntoViewOptions) => Promise<void>; }; type UseScrollViewReturns = ReturnType<typeof useScrollView>; //#endregion export { UseScrollViewReturns, useScrollView };