1 | import * as React from 'react';
|
2 | import { CSSModule } from './utils';
|
3 |
|
4 | interface CommonCarouselProps extends React.HTMLAttributes<HTMLElement> {
|
5 | [key: string]: any;
|
6 | activeIndex?: number;
|
7 | keyboard?: boolean;
|
8 | pause?: 'hover' | false;
|
9 | ride?: 'carousel';
|
10 | interval?: number | string | boolean;
|
11 | mouseEnter?: () => void;
|
12 | mouseExit?: () => void;
|
13 | slide?: boolean;
|
14 | dark?: boolean;
|
15 | fade?: boolean;
|
16 | cssModule?: CSSModule;
|
17 | enableTouch?: boolean;
|
18 | }
|
19 |
|
20 | export interface CarouselProps extends CommonCarouselProps {
|
21 | next: () => void;
|
22 | previous: () => void;
|
23 | }
|
24 |
|
25 | export interface UncontrolledCarouselProps extends CommonCarouselProps {
|
26 | items: any[];
|
27 | next?: () => void;
|
28 | previous?: () => void;
|
29 | controls?: boolean;
|
30 | indicators?: boolean;
|
31 | autoPlay?: boolean;
|
32 | }
|
33 |
|
34 | declare class Carousel extends React.Component<CarouselProps> {}
|
35 | export default Carousel;
|