UNPKG

keep-vue

Version:

Keep Vue is an open-source component library built on top of Vue3 and Tailwind CSS. It offers a collection of pre-designed UI components and styles that you can easily integrate into your web applications.

22 lines (21 loc) 782 B
import type useEmblaCarousel from "embla-carousel-vue"; import type { EmblaCarouselVueType } from "embla-carousel-vue"; import type { HTMLAttributes, UnwrapRef } from "vue"; type CarouselApi = EmblaCarouselVueType[1]; type UseCarouselParameters = Parameters<typeof useEmblaCarousel>; type CarouselOptions = UseCarouselParameters[0]; type CarouselPlugin = UseCarouselParameters[1]; export type UnwrapRefCarouselApi = UnwrapRef<CarouselApi>; export interface CarouselProps { options?: CarouselOptions; plugins?: CarouselPlugin; orientation?: "horizontal" | "vertical"; viewPortClass?: string; } export interface CarouselEmits { (e: "init-api", payload: UnwrapRefCarouselApi): void; } export interface ClassProps { class?: HTMLAttributes["class"]; } export {};