Macavity / meteor-react-swiper

Swiper js wrapped into a react component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install

Swiper js wrapped into a react component.

meteor add poetic:react-swiper

Example

<SwiperComponent
  options={this.swiperOptions}
  swiperIsInitialized={this.swiperIsInitialized}>

  <div>Slide 1</div>
  <div>Slide 2</div>
  <div>Slide 3</div>

</SwiperComponent>

Props

  • options, the options are passed to Swiper directly.
  • swiperisinitialized(swiperInstance), you can get the swiper instance by pass in ths callback.
  • other props are passed directly to the Swiper div.

About

Swiper js wrapped into a react component

License:MIT License


Languages

Language:JavaScript 100.0%