UNPKG

infinity-forge

Version:
15 lines (14 loc) 384 B
import { SwiperOptions } from "./carousel-lib/types/index.js"; export type ActionsCarousel = { slideTo: (index: number) => void; slideNext: () => void; slidePrev: () => void; }; export interface CarouselProps<T = any> { id: string; items: T[]; config?: SwiperOptions; Component: React.ComponentType<T & ActionsCarousel & { index: number; }>; }