diff --git a/docs/react/slides.md b/docs/react/slides.md index 9d1c37d4c3f..db71dadd7b4 100644 --- a/docs/react/slides.md +++ b/docs/react/slides.md @@ -159,7 +159,7 @@ To begin, we need to import the modules and their corresponding CSS files from t import React from 'react'; import { IonContent, IonPage } from '@ionic/react'; import { Swiper, SwiperSlide } from 'swiper/react'; -import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper'; +import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper/modules'; import 'swiper/css'; import 'swiper/css/autoplay'; @@ -191,7 +191,7 @@ From here, we need to provide these modules to Swiper by using the `modules` pro import React from 'react'; import { IonContent, IonPage } from '@ionic/react'; import { Swiper, SwiperSlide } from 'swiper/react'; -import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper'; +import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper/modules'; import 'swiper/css'; import 'swiper/css/autoplay'; @@ -223,7 +223,7 @@ Finally, we can turn these features on by using the appropriate properties: import React from 'react'; import { IonContent, IonPage } from '@ionic/react'; import { Swiper, SwiperSlide } from 'swiper/react'; -import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper'; +import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper/modules'; import 'swiper/css'; import 'swiper/css/autoplay'; @@ -272,7 +272,7 @@ We can install the `IonicSlides` module by importing it from `@ionic/react` and import React from 'react'; import { IonContent, IonPage, IonicSlides } from '@ionic/react'; import { Swiper, SwiperSlide } from 'swiper/react'; -import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper'; +import { Autoplay, Keyboard, Pagination, Scrollbar, Zoom } from 'swiper/modules'; import 'swiper/css'; import 'swiper/css/autoplay'; @@ -466,7 +466,7 @@ If you are using effects such as Cube or Fade, you can install them just like we ```tsx import React from 'react'; import { IonContent, IonPage, IonicSlides } from '@ionic/react'; -import { EffectFade } from 'swiper'; +import { EffectFade } from 'swiper/modules'; import { Swiper, SwiperSlide } from 'swiper/react'; import 'swiper/css'; @@ -493,7 +493,7 @@ Next, we need to import the stylesheet associated with the effect: ```tsx import React from 'react'; import { IonContent, IonPage, IonicSlides } from '@ionic/react'; -import { EffectFade } from 'swiper'; +import { EffectFade } from 'swiper/modules'; import { Swiper, SwiperSlide } from 'swiper/react'; import 'swiper/css'; @@ -521,7 +521,7 @@ After that, we can activate it by setting the `effect` property on `swiper` to ` ```tsx import React from 'react'; import { IonContent, IonPage, IonicSlides } from '@ionic/react'; -import { EffectFade } from 'swiper'; +import { EffectFade } from 'swiper/modules'; import { Swiper, SwiperSlide } from 'swiper/react'; import 'swiper/css'; diff --git a/docs/vue/slides.md b/docs/vue/slides.md index 946b39dec4a..fab18e0cb1a 100644 --- a/docs/vue/slides.md +++ b/docs/vue/slides.md @@ -152,7 +152,7 @@ To begin, we need to import the modules and their corresponding CSS files from t