@edancerys/ts-react-components-lib
Version:
37 lines (36 loc) • 1.02 kB
TypeScript
import React, { ReactNode } from 'react';
import { StringProps } from './String';
export interface CarouselProps {
nodes?: ReactNode[];
links?: LinkProps[];
saved?: boolean;
maxWidth?: string;
height?: string;
margin?: string;
padding?: string;
borderRadius?: string;
backgroundColor?: string;
border?: string;
className?: string;
isLoop?: boolean;
timeout?: number;
onClick?: (event?: React.MouseEvent) => void;
onLikeClick?: (event?: React.MouseEvent) => void;
}
export interface LinkProps {
url?: string;
title?: StringProps;
body?: StringProps;
onClick?: (event?: React.MouseEvent) => void;
}
export interface ImageProps extends CarouselProps {
width?: string;
isForwardSlide?: boolean;
isCurrentSlide?: boolean;
opacity?: number;
}
export interface CardIconProps extends CarouselProps {
left?: string;
right?: string;
}
export declare const Carousel: React.FC<CarouselProps>;