UNPKG

vue-carousel-lite

Version:

Fast, Lightweight Vue Carousel With Touch, Mouse, Keyboard, Wheel & SSR support

18 lines (16 loc) 571 B
import { ComputedRef, Ref } from 'vue'; import { CarouselProps } from '../types'; interface UseKeyboardOptions { containerRef: Ref<HTMLElement | null>; props: CarouselProps; goNext: () => void; goPrev: () => void; goNextPage: () => void; goPrevPage: () => void; goToSlide: (index: number, smooth?: boolean) => void; totalSlides: ComputedRef<number>; } export declare function useKeyboard({ containerRef, props, goNext, goPrev, goNextPage, goPrevPage, goToSlide, totalSlides, }: UseKeyboardOptions): { focus: () => void; }; export {};