UNPKG

react-multi-carousel-jsm

Version:

Production-ready, lightweight fully customizable React carousel component that rocks supports multiple items and SSR(Server-side rendering) with typescript.

11 lines (10 loc) 638 B
import * as React from "react"; import { CarouselInternalState, CarouselProps, StateCallBack, SkipCallbackOptions } from "./types"; interface DotsTypes { props: CarouselProps; state: CarouselInternalState; goToSlide: (index: number, skipCallbacks?: SkipCallbackOptions) => void; getState: () => StateCallBack; } declare const Dots: ({ props, state, goToSlide, getState }: DotsTypes) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null; export default Dots;