Swiper docs

Carousel (Slider)

A slideshow component for cycling through elements (images or slides with various content) like a carousel.

The Carousel component relies on the Swiper component. Ensure that you have imported all necessary component's files. Below is an example of imports necessary for the slider with navigation buttons and pagination (bullets):

import { Swiper, SwiperSlide } from 'swiper/react'
import { Navigation, Pagination } from 'swiper/modules'
import 'swiper/css'
import 'swiper/css/pagination'
See also:

Swiper slider demos with code examples

Top