1
import * as React from 'react';
2 3
import { createHostComponent } from '@remax/runtime';
3

4
export interface SwiperProps {
5
  readonly dataset?: DOMStringMap;
6
  id?: string;
7
  className?: string;
8
  style?: React.CSSProperties;
9
  indicatorDots?: boolean;
10
  indicatorColor?: string;
11
  indicatorActiveColor?: string;
12
  activeClassName?: string;
13
  changingClassName?: string;
14
  autoplay?: boolean;
15
  current?: number;
16
  duration?: number;
17
  interval?: number;
18
  circular?: boolean;
19
  vertical?: boolean;
20
  previousMargin?: string;
21
  nextMargin?: string;
22
  acceleration?: boolean;
23
  disableProgrammaticAnimation?: boolean;
24
  disableTouch?: boolean;
25
  onChange?: (e: any) => void;
26
  onTransition?: (e: any) => void;
27
  onAnimationEnd?: (e: any) => void;
28
}
29

30 3
export const Swiper = createHostComponent<SwiperProps>('swiper') as React.ComponentType<SwiperProps>;

Read our documentation on viewing source code .

Loading