zalify-ui

Carousel

A component for displaying multiple items in a rotating slideshow format.

React

Usage

Shortcuts

IndicatorGroup

The Carousel.IndicatorGroup automatically renders indicators for each page. Instead of:

If you don't need to customize the indicators, you can use the shortcut:

Examples

Multiple

Set the slidesPerPage prop to show multiple items per page.

React

Auto Play

Set the autoPlay prop to enable automatic sliding.

React

Images

Here is an example of a carousel displaying images.

React

Vertical

Set the orientation prop to vertical to create a vertical carousel.

React

Scroll To

Use the scrollTo method to programmatically navigate to a specific slide.

React

Props

Root

Indicator

Item