Prologue
Getting Started
Dark Mode
Colors
Drag-and-drop
Forms
Utilities
Carousel
A carousel is a sleek, rotating display for images or videos, showcasing one at a time and highlighting multiple pieces of content seamlessly.
Basic
Installation
If you hit any issues, make sure you check out the installation guide here.
Composed Components
When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.
The Carousel's decked out with several components to make it bangin'.
Manual Installation
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Anatomy
Import the components and use them as shown below, adapting the structure to fit each component.
Collections
Because the carousel it self use a ListBox, then of course we can use items
on the CarouselContent to render the items.
Orientation
You can change the orientation of the carousel by using the orientation
prop. The default is horizontal, but you can switch it to vertical.
Options
You want to loop, or align the carouse, don't worry, you can do it with the opts
prop.
Autoplay
This a plugin by the embla-carousel it self, it's not included in the package, but you can install it to make sure the carousel autoplay.
Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.
Once you install it, you can use it with the plugins
prop.
Link
If you need a link in carousel item, it simple, add href to the CarouselItem.
API
You can use the carousel api to control the carousel.