docs: update carousel for optional plugin installation

This commit is contained in:
zernonia 2024-01-09 00:47:24 +08:00
parent c3e9e9f86a
commit c509c6794f

View File

@ -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.
```bash
npm i embla-carousel-autoplay
```
```vue showLineNumbers {2,8-10}
<script setup lang="ts">
import Autoplay from 'embla-carousel-autoplay'