v8-ui-components
Version:
A component lib for v8 storefront apps
33 lines (32 loc) • 996 B
TypeScript
import { IShowPreviews } from "../../Carousel.interfaces";
import { IThemeInterface } from "v8-theme-interfaces/lib/theme.interfaces";
export interface ICarouselButtonsState {
previousArrowDirection: "left" | "right" | null;
sameArrowClickCount: number;
}
export interface ICarouselButtonsProps {
hidePrevArrow: boolean;
hideNextArrow: boolean;
showArrowsOnMobile?: boolean;
btnWidth?: number;
btnHeight?: number;
btnIconSize?: string;
goToPrevious: () => void;
goToNext: () => void;
showPreviews: IShowPreviews;
alignToTop?: boolean;
carouselPosition: number;
getCarouselButtonsAnalyticsEvents?: (...args: any) => void;
}
export interface IButtonContainerProps {
showArrowsOnMobile: boolean;
showPreviews: IShowPreviews;
}
export interface IButtonArrowProps {
isLeft?: boolean;
isRight?: boolean;
theme: IThemeInterface;
width: number;
height: number;
alignToTop: boolean;
}