UNPKG

881 BTypeScriptView Raw
1import * as React from 'react';
2
3import CarouselCaption from './CarouselCaption';
4import CarouselItem from './CarouselItem';
5
6import { BsPrefixComponent } from './helpers';
7
8export 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
28declare 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
35export default Carousel;