docs(carousel): add thumbnails example (#3740)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Hung Chang
2025-04-22 21:44:40 +08:00
committed by GitHub
parent 83f0a24704
commit 5fc6312ab1
2 changed files with 67 additions and 0 deletions

View File

@@ -229,6 +229,19 @@ class: 'p-8 px-16'
---
::
## Examples
### With thumbnails
You can use the [`emblaApi`](#expose) function [scrollTo](https://www.embla-carousel.com/api/methods/#scrollto) to display thumbnails under the carousel that allows you to navigate to a specific slide.
::component-example
---
name: 'carousel-thumbnails-example'
class: 'p-8 px-16'
---
::
## API
### Props