diff --git a/apps/www/src/content/docs/components/carousel.md b/apps/www/src/content/docs/components/carousel.md index c2d724f4..6cba268c 100644 --- a/apps/www/src/content/docs/components/carousel.md +++ b/apps/www/src/content/docs/components/carousel.md @@ -175,15 +175,15 @@ You can pass options to the carousel using the `opts` prop. See the [Embla Carou ## API -Use the `useCarousel` hook to get the instance of the API. +Use the `@init-api` emit method on `` component to set the instance of the API. ## Events -You can listen to events using the api instance from `useCarousel()`. +You can listen to events using the API. To get the API instance use the `@init-api` emit method on the `` component -```vue +```vue showLineNumbers {5,7-9,25}