UNPKG

embla-carousel-react

Version:

A lightweight carousel library with fluid motion and great swipe precision

12 lines (11 loc) 542 B
import { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel'; export type EmblaViewportRefType = <ViewportElement extends HTMLElement>(instance: ViewportElement | null) => void; export type UseEmblaCarouselType = [ EmblaViewportRefType, EmblaCarouselType | undefined ]; declare function useEmblaCarousel(options?: EmblaOptionsType, plugins?: EmblaPluginType[]): UseEmblaCarouselType; declare namespace useEmblaCarousel { let globalOptions: EmblaOptionsType | undefined; } export default useEmblaCarousel;