|
|
@ -18,6 +18,7 @@ export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
|
|
|
|
dotPosition?: DotPosition;
|
|
|
|
dotPosition?: DotPosition;
|
|
|
|
children?: React.ReactNode;
|
|
|
|
children?: React.ReactNode;
|
|
|
|
dots?: boolean | { className?: string };
|
|
|
|
dots?: boolean | { className?: string };
|
|
|
|
|
|
|
|
waitForAnimate?: boolean;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface CarouselRef {
|
|
|
|
export interface CarouselRef {
|
|
|
@ -34,6 +35,7 @@ const Carousel = React.forwardRef<CarouselRef, CarouselProps>(
|
|
|
|
dots = true,
|
|
|
|
dots = true,
|
|
|
|
arrows = false,
|
|
|
|
arrows = false,
|
|
|
|
draggable = false,
|
|
|
|
draggable = false,
|
|
|
|
|
|
|
|
waitForAnimate = false,
|
|
|
|
dotPosition = 'bottom',
|
|
|
|
dotPosition = 'bottom',
|
|
|
|
vertical = dotPosition === 'left' || dotPosition === 'right',
|
|
|
|
vertical = dotPosition === 'left' || dotPosition === 'right',
|
|
|
|
rootClassName,
|
|
|
|
rootClassName,
|
|
|
@ -109,6 +111,7 @@ const Carousel = React.forwardRef<CarouselRef, CarouselProps>(
|
|
|
|
dotsClass={dsClass}
|
|
|
|
dotsClass={dsClass}
|
|
|
|
arrows={arrows}
|
|
|
|
arrows={arrows}
|
|
|
|
draggable={draggable}
|
|
|
|
draggable={draggable}
|
|
|
|
|
|
|
|
waitForAnimate={waitForAnimate}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>,
|
|
|
|
</div>,
|
|
|
|
);
|
|
|
|
);
|
|
|
|