@neuctra/ui
Version:
A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.
26 lines (25 loc) • 961 B
TypeScript
import { default as React } from 'react';
export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
children: React.ReactNode;
defaultIndex?: number;
onIndexChange?: (index: number) => void;
/** Auto-advance interval in ms; 0 disables. Pauses on hover/focus. */
autoPlay?: number;
/** Wrap from the last slide back to the first. */
loop?: boolean;
showArrows?: boolean;
showDots?: boolean;
/** Accessible name for the carousel region. */
label?: string;
/** 🔥 Full Customization */
trackClassName?: string;
slidesClassName?: string;
slideClassName?: string;
arrowClassName?: string;
prevArrowClassName?: string;
nextArrowClassName?: string;
arrowIconClassName?: string;
dotsClassName?: string;
dotClassName?: string;
}
export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;