UNPKG

835 BTypeScriptView Raw
1import * as React from 'react';
2import { Settings } from '@ant-design/react-slick';
3export declare type CarouselEffect = 'scrollx' | 'fade';
4export declare type DotPosition = 'top' | 'bottom' | 'left' | 'right';
5export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
6 effect?: CarouselEffect;
7 style?: React.CSSProperties;
8 prefixCls?: string;
9 slickGoTo?: number;
10 dotPosition?: DotPosition;
11 children?: React.ReactNode;
12 dots?: boolean | {
13 className?: string;
14 };
15}
16export interface CarouselRef {
17 goTo: (slide: number, dontAnimate?: boolean) => void;
18 next: () => void;
19 prev: () => void;
20 autoPlay: boolean;
21 innerSlider: any;
22}
23declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselRef>>;
24export default Carousel;