Park UI

Carousel

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

Installation

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.

Auto Play

Set the autoPlay prop to enable automatic sliding.

Images

Here is an example of a carousel displaying images.

Vertical

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

Scroll To

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

Props

Root

Indicator

Item