docs: update carousel for optional plugin installation
This commit is contained in:
parent
c3e9e9f86a
commit
c509c6794f
|
|
@ -256,6 +256,11 @@ You can get the reactive slot props like `carouselRef, canScrollNext..Prev, scro
|
||||||
|
|
||||||
You can use the `plugins` prop to add plugins to the carousel.
|
You can use the `plugins` prop to add plugins to the carousel.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i embla-carousel-autoplay
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
```vue showLineNumbers {2,8-10}
|
```vue showLineNumbers {2,8-10}
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Autoplay from 'embla-carousel-autoplay'
|
import Autoplay from 'embla-carousel-autoplay'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user