UNPKG

1.18 kBTypeScriptView Raw
1import * as React from "react";
2import { Omit, SelectCallback, Sizes } from "react-bootstrap";
3import CarouselItem = require("./CarouselItem");
4import CarouselCaption = require("./CarouselCaption");
5
6declare namespace Carousel {
7 export type CarouselProps = Omit<React.HTMLProps<Carousel>, "wrap"> & {
8 activeIndex?: number | undefined;
9 bsSize?: Sizes | undefined;
10 bsStyle?: string | undefined;
11 controls?: boolean | undefined;
12 defaultActiveIndex?: number | undefined;
13 direction?: string | undefined;
14 indicators?: boolean | undefined;
15 interval?: number | null | undefined;
16 nextIcon?: React.ReactNode | undefined;
17 onSelect?: SelectCallback | undefined;
18 // TODO: Add more specific type
19 onSlideEnd?: Function | undefined;
20 pauseOnHover?: boolean | undefined;
21 prevIcon?: React.ReactNode | undefined;
22 slide?: boolean | undefined;
23 wrap?: boolean | undefined;
24 };
25}
26declare class Carousel extends React.Component<Carousel.CarouselProps> {
27 public static Caption: typeof CarouselCaption;
28 public static Item: typeof CarouselItem;
29}
30export = Carousel;