Files
float-fleet/components/UIElements/SwiperSlider/AutoplaySlider.js
T
DESKTOP-GBA0BK8\Admin 97cc85c49d first commit
2023-03-25 20:44:56 -04:00

67 lines
1.6 KiB
JavaScript

import React from "react";
import { Swiper, SwiperSlide } from "swiper/react";
import { Autoplay, Pagination, Navigation } from "swiper";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
export default function AutoplaySlider() {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
mb: '10px'
}}
>
Autoplay
</Typography>
<Swiper
spaceBetween={30}
centeredSlides={true}
autoplay={{
delay: 2500,
disableOnInteraction: false,
}}
pagination={{
clickable: true,
}}
navigation={true}
modules={[Autoplay, Pagination, Navigation]}
className="mySwiper"
>
<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-img5.jpg" alt="Image" />
</SwiperSlide>
<SwiperSlide>
<img src="/images/slider-img2.jpg" alt="Image" />
</SwiperSlide>
<SwiperSlide>
<img src="/images/slider-img1.jpg" alt="Image" />
</SwiperSlide>
</Swiper>
</Card>
</>
);
}