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

image 1
image 2
image 3
image 4
image 5
image 6
image 7

Installation

In the terminal, run the following command to begin:
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.

image 1

Vintage Leather Jacket

Classic brown leather jacket, perfect for a stylish retro look.
image 2

Wireless Bluetooth Headphones

Experience high-quality sound with these comfortable, noise-canceling headphones.
image 3

Organic Cotton T-Shirt

Soft and eco-friendly t-shirt made from 100% organic cotton.
image 4

Stainless Steel Water Bottle

Keep your drinks cold or hot with this durable, insulated water bottle.
image 5

Running Shoes

Lightweight and comfortable shoes designed for optimal performance.
image 6

Smartwatch

Stay connected and track your fitness with this sleek smartwatch.
image 7

Portable Charger

Never run out of battery with this high-capacity portable charger.

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.

Vintage Leather Jacket

Classic brown leather jacket, perfect for a stylish retro look.

Wireless Bluetooth Headphones

Experience high-quality sound with these comfortable, noise-canceling headphones.

Organic Cotton T-Shirt

Soft and eco-friendly t-shirt made from 100% organic cotton.

Stainless Steel Water Bottle

Keep your drinks cold or hot with this durable, insulated water bottle.

Running Shoes

Lightweight and comfortable shoes designed for optimal performance.

Smartwatch

Stay connected and track your fitness with this sleek smartwatch.

Portable Charger

Never run out of battery with this high-capacity portable charger.

Noise-Canceling Earbuds

Compact and powerful earbuds that block out unwanted noise.

Yoga Mat

Non-slip, cushioned yoga mat for a comfortable workout experience.

LED Desk Lamp

Bright and energy-efficient LED lamp with adjustable brightness.

Options

You want to loop, or align the carouse, don't worry, you can do it with the opts prop.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

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.

In the terminal, run the following command to begin:
npm i embla-carousel-autoplay

Vintage Leather Jacket

Classic brown leather jacket, perfect for a stylish retro look.

Wireless Bluetooth Headphones

Experience high-quality sound with these comfortable, noise-canceling headphones.

Organic Cotton T-Shirt

Soft and eco-friendly t-shirt made from 100% organic cotton.

Stainless Steel Water Bottle

Keep your drinks cold or hot with this durable, insulated water bottle.

Running Shoes

Lightweight and comfortable shoes designed for optimal performance.

Smartwatch

Stay connected and track your fitness with this sleek smartwatch.

Portable Charger

Never run out of battery with this high-capacity portable charger.

Noise-Canceling Earbuds

Compact and powerful earbuds that block out unwanted noise.

Yoga Mat

Non-slip, cushioned yoga mat for a comfortable workout experience.

LED Desk Lamp

Bright and energy-efficient LED lamp with adjustable brightness.

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.

1
2
3
4
5
6
7
8
9
10