forked from qburst/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCarousel.d.ts
More file actions
35 lines (31 loc) · 865 Bytes
/
Copy pathCarousel.d.ts
File metadata and controls
35 lines (31 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import * as React from 'react';
import { CSSModule } from './utils';
interface CommonCarouselProps extends React.HTMLAttributes<HTMLElement> {
[key: string]: any;
activeIndex?: number;
keyboard?: boolean;
pause?: 'hover' | false;
ride?: 'carousel';
interval?: number | string | boolean;
mouseEnter?: () => void;
mouseExit?: () => void;
slide?: boolean;
dark?: boolean;
fade?: boolean;
cssModule?: CSSModule;
enableTouch?: boolean;
}
export interface CarouselProps extends CommonCarouselProps {
next: () => void;
previous: () => void;
}
export interface UncontrolledCarouselProps extends CommonCarouselProps {
items: any[];
next?: () => void;
previous?: () => void;
controls?: boolean;
indicators?: boolean;
autoPlay?: boolean;
}
declare class Carousel extends React.Component<CarouselProps> {}
export default Carousel;