UNPKG

@azfar_razzaq/react-infinite-carousel

Version:

This package provides a react component to render an infinite carousel

25 lines (24 loc) 660 B
import "./styles.css"; interface BaseCarouselProps { className?: string; numOfCopies?: number; durationPerClone?: number; animationDirection?: "ltr" | "rtl"; hoverSpeedFactor?: number; fade?: number; responsiveClones?: { breakpoint: number; numOfCopies: number; }[]; } interface ImageCarouselProps extends BaseCarouselProps { itemType: "images"; images_links: string[]; } interface TextCarouselProps extends BaseCarouselProps { itemType: "text"; text: string; } type CarouselProps = ImageCarouselProps | TextCarouselProps; export default function Carousel(params: CarouselProps): any; export {};