@arranjae/react-simple-carousel
Version:
Simple Carousel - React and TypeScript
31 lines (27 loc) • 593 B
text/typescript
export interface CarouselProps {
list: Array<ItemType>;
wrapperClasses?: string | string[] | any;
showBullets?: boolean;
showCardNoItems?: boolean;
customButtons?: {
next: React.ElementType;
prev: React.ElementType;
};
}
export interface ItemType {
content: JSX.Element;
onClickItem?: Function;
itemCustomClass?: any;
}
export interface ItemProps {
item: ItemType;
refer: Function;
id?: string;
setScroll?: Function;
}
export interface ButtonsProps {
Elem?: React.ElementType;
className: string;
handleClick: Function;
children: React.ReactNode;
}