Lightweight react desktop/mobile swiper
See demo HERE
npm install @antonkolesnik/swiperyarn add @antonkolesnik/swiperimport '@antonkolesnik/swiper/lib/styles.css';className: CSS class name to style the swiperwithPagination (true by default): Enable/disable paginationonSwipeStartonSwipeonSwipeEndonPaginationChange
import Swiper from '@antonkolesnik/swiper';
import '@antonkolesnik/swiper/lib/styles.css';
const Demo = () => (
<div style={{ width: '600px' }}>
<Swiper className="custom" withPagination>
<div style={{ background: 'black', color: 'white' }}>Slide 1</div>
<img src="img.jpg" />
</Swiper>
</div>
);