Components

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

Loading...

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Composed Components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

The Carousel comes packed with several components to enhance functionality and provide a seamless experience.

Buttons play a crucial role in functionality, whether for submitting a form or navigating to another page.

Manual Installation

Make sure you also install the composed components and the required packages for the component to function properly.

Anatomy

Collections

Because the carousel it self use a ListBox, then of course we can use items on the CarouselContent to render the items.

Loading...

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.

Loading...

Options

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

Loading...

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.

Make sure you also install the composed components and the required packages for the component to function properly.

Once you install it, you can use it with the plugins prop.

Loading...

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.

Loading...
Get premium Blocks
Create stunning, professional-grade layouts that not only save time but also elevate the quality of your projects.