zmp-react
Version:
Build full featured iOS & Android apps using ZMP & React
33 lines (28 loc) • 848 B
TypeScript
import * as React from 'react';
interface SwiperProps {
slot?: string;
id?: string | number;
className?: string;
style?: React.CSSProperties;
pagination?: boolean;
scrollbar?: boolean;
navigation?: boolean;
autoplay?: boolean;
allowSlideNext?: boolean;
allowSlidePrev?: boolean;
allowTouchMove?: boolean;
centeredSlides?: boolean;
direction?: 'horizontal' | 'vertical';
effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip' | 'creative' | 'cards';
enabled?: boolean;
loop?: boolean;
loopedSlides?: number;
slidesPerView?: number | 'auto';
spaceBetween?: number;
speed?: number;
onSlideChange?: (instance?: swiper) => void;
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
children?: React.ReactNode;
}
declare const Swiper: React.FunctionComponent<SwiperProps>;
export default Swiper;