UNPKG

react-configurable-carousel

Version:

A simple and responsive configurable 2D/3D carousel React component

23 lines (22 loc) 729 B
import * as React from "react"; declare type CarouselProps = { arrows: boolean; dotsNavigation: boolean; dotsNavigationInside?: boolean; dotNavigationOutlineColor?: string; dotNavigationFillColor?: string; children?: React.ReactNode; width: string; height: string; autoScrollInterval?: number; autoScrollClickDelay?: number; carouselStyle?: "flat" | "3d"; outOfFocusDarken?: boolean; }; export declare type CarouselControllerHandle = { shiftLeft: () => void; shiftRight: () => void; jumpToIndex: (index: number) => void; }; declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselControllerHandle>>; export default Carousel;