About
The carousel component is built using the Embla Carousel library.Installation
- CLI
- Manual
Usage
Examples
Sizes
To set the size of the items, you can use thebasis utility class on the <Carousel.Item />.
Spacing
To set the spacing between the items, we use aps-[VALUE] utility on the <Carousel.Item /> and a negative -ms-[VALUE] on the <Carousel.Content />.
Orientation
Use theorientation prop to set the orientation of the carousel.
Options
You can pass options to the carousel using theopts prop. See the Embla Carousel docs for more information.
API
Use reactive state and thesetApi callback to get an instance of the carousel API.
Events
You can listen to events using the api instance frombind:api.
Plugins
You can use theplugins prop to add plugins to the carousel.