Basic
Preview
Code
Installation
CLI
Manual
npx hq-kit add carousel
Collections
Because the carousel it self use a ListBox, then of course we can use items
on the CarouselContent to render the items.
Preview
Code
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.
Preview
Code
Options
You want to loop, or align the carouse, don't worry, you can do it with the opts
prop.
Preview
Code
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.
Once you install it, you can use it with the plugins
prop.
npm i embla-carousel-autoplay
Preview
Code
Link
If you need a link in carousel item, it simple, add href to the CarouselItem.
<CarouselItem href="/path/to/page"/>
API
You can use the carousel api to control the carousel.
Preview
Code