1 | import * as React from 'react';
|
2 |
|
3 | import CarouselCaption from './CarouselCaption';
|
4 | import CarouselItem from './CarouselItem';
|
5 |
|
6 | import { BsPrefixComponent } from './helpers';
|
7 |
|
8 | export interface CarouselProps {
|
9 | bsPrefix?: string;
|
10 | slide?: boolean;
|
11 | fade?: boolean;
|
12 | wrap?: boolean;
|
13 | indicators?: boolean;
|
14 | interval?: number | null;
|
15 | controls?: boolean;
|
16 | pauseOnHover?: boolean;
|
17 | keyboard?: boolean;
|
18 | onSelect?: (eventKey: any, direction: 'prev' | 'next', event: object) => void;
|
19 | onSlideEnd?: () => void;
|
20 | activeIndex?: number;
|
21 | prevIcon?: React.ReactNode;
|
22 | prevLabel?: string;
|
23 | nextIcon?: React.ReactNode;
|
24 | nextLabel?: string;
|
25 | touch?: boolean;
|
26 | }
|
27 |
|
28 | declare class Carousel<
|
29 | As extends React.ElementType = 'div'
|
30 | > extends BsPrefixComponent<As, CarouselProps> {
|
31 | static Item: typeof CarouselItem;
|
32 | static Caption: typeof CarouselCaption;
|
33 | }
|
34 |
|
35 | export default Carousel;
|