poetic:react-swiper

v3.2.7-rc.4Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

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.