60 lines
1.4 KiB
JavaScript
60 lines
1.4 KiB
JavaScript
import React from "react";
|
|
import { Swiper, SwiperSlide } from "swiper/react";
|
|
import { Pagination } from "swiper";
|
|
import Card from "@mui/material/Card";
|
|
import { Typography } from "@mui/material";
|
|
|
|
export default function PaginationDynamic() {
|
|
return (
|
|
<>
|
|
<Card
|
|
sx={{
|
|
boxShadow: "none",
|
|
borderRadius: "10px",
|
|
p: "25px",
|
|
mb: "15px",
|
|
}}
|
|
>
|
|
<Typography
|
|
as="h3"
|
|
sx={{
|
|
fontSize: 18,
|
|
fontWeight: 500,
|
|
mb: '10px'
|
|
}}
|
|
>
|
|
Pagination Dynamic
|
|
</Typography>
|
|
|
|
<Swiper
|
|
pagination={{
|
|
dynamicBullets: true,
|
|
}}
|
|
modules={[Pagination]}
|
|
className="mySwiper"
|
|
>
|
|
<SwiperSlide>
|
|
<img src="/images/slider-img5.jpg" alt="Image" />
|
|
</SwiperSlide>
|
|
|
|
<SwiperSlide>
|
|
<img src="/images/slider-img2.jpg" alt="Image" />
|
|
</SwiperSlide>
|
|
|
|
<SwiperSlide>
|
|
<img src="/images/slider-img3.jpg" alt="Image" />
|
|
</SwiperSlide>
|
|
|
|
<SwiperSlide>
|
|
<img src="/images/slider-img4.jpg" alt="Image" />
|
|
</SwiperSlide>
|
|
|
|
<SwiperSlide>
|
|
<img src="/images/slider-img1.jpg" alt="Image" />
|
|
</SwiperSlide>
|
|
</Swiper>
|
|
</Card>
|
|
</>
|
|
);
|
|
}
|