I use the slider swiper library in my react project. I have initialized this slider and everything works, but I want to style my pagination. I have added some styles to my slider swiper component object, but I also want to add some spacing to bullets from the top. So It is the CSS property margin-top. But I don't know where this property is in the slider swiper. Please, help me to add the margin-top property to my bullets.
Here is my code:
function Section4(props) {
return (
<div className="section4">
<div className="section-slider">
<Swiper
modules={[Navigation, Pagination]}
spaceBetween={50}
slidesPerView={1}
onSlideChange={() => console.log('slide change')}
onSwiper={(swiper) => console.log(swiper)}
navigation
pagination={{ clickable: true }}
style={{
"--swiper-pagination-color": "#FFBA08",
"--swiper-pagination-bullet-inactive-color": "#999999",
"--swiper-pagination-bullet-inactive-opacity": "1",
"--swiper-pagination-bullet-size": "16px",
"--swiper-pagination-bullet-horizontal-gap": "10px"
}}
>
<SwiperSlide>Slide 1</SwiperSlide>
<SwiperSlide>Slide 2</SwiperSlide>
<SwiperSlide>Slide 3</SwiperSlide>
<SwiperSlide>Slide 4</SwiperSlide>
</Swiper>
</div>
</div>
);
}
export default Section4;