UNPKG

simple-react-ui

Version:

a simple react component library written in TypeScript+ React.js

23 lines (22 loc) 702 B
/// <reference types="react" /> import * as React from "react"; export interface CarouselProps { items: Array<any>; autoplayInterval: Number; style: any; } export interface CarouselState { items: Array<any>; indicators: Array<any>; activeIndex: Number; intervalId: any; } export declare class Carousel extends React.Component<CarouselProps, CarouselState> { static defaultProps: CarouselProps; constructor(props: CarouselProps); calculatePreviousActiveIndex(currentActiveIndex: any): number; calculateNextActiveIndex(currentActiveIndex: any): number; componentDidMount(): void; render(): JSX.Element; } export default Carousel;