react-configurable-carousel
Version:
A simple and responsive configurable 2D/3D carousel React component
25 lines (22 loc) • 746 B
TypeScript
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;
};
declare type CarouselControllerHandle = {
shiftLeft: () => void;
shiftRight: () => void;
jumpToIndex: (index: number) => void;
};
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselControllerHandle>>;
export { Carousel, CarouselControllerHandle };