@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
23 lines • 644 B
text/typescript
import { ComponentProps, ReactNode, Ref } from "react";
//#region src/base-ui/Carousel/type.d.ts
interface CarouselRef {
goTo: (index: number) => void;
next: () => void;
prev: () => void;
}
interface CarouselProps extends Omit<ComponentProps<'div'>, 'children' | 'ref'> {
adaptiveHeight?: boolean;
arrows?: boolean;
autoplay?: boolean | number;
children?: ReactNode;
defaultIndex?: number;
dots?: boolean;
index?: number;
loop?: boolean;
onIndexChange?: (index: number) => void;
pauseOnHover?: boolean;
ref?: Ref<CarouselRef>;
}
//#endregion
export { CarouselProps, CarouselRef };
//# sourceMappingURL=type.d.mts.map