Carousel - Keep React

A Carousel component is a user interface element commonly found in web and mobile applications that allows you to display a series of images, content, or media items in a rotating manner. It is often used to showcase multiple items in a limited space, allowing users to view different items by sliding or swiping through them.

Table of Contents#

Default Carousel component allows you to display a series of images, content, or media items in a rotating manner. It is often used to showcase multiple items in a limited space, allowing users to view different items by sliding or swiping through them.

slider-1
slider-2
slider-3
slider-4

A Static Carousel is a type of carousel component that displays a sequence of items without providing any indicators or navigation controls for users to manually switch between items. Instead, the items in a static carousel automatically transition or scroll to the next item at a predefined interval.

slider-1
slider-2
slider-3
slider-4

A Carousel with Text Control is a carousel component that includes textual navigation controls, typically in the form of Next and Previous buttons.

slider-1
slider-2
slider-3
slider-4

A Carousel with Custom Control Icons is a carousel component that provides navigation controls with customized icons for moving between items. By using leftControl and rightControl props, we can add custom controls.

slider-1
slider-2
slider-3
slider-4

The IndicatorsType prop allows you to choose from different types of indicators. By using indicatorsType props as dots, rings, bars, squares, or squareRing, based on your design preferences.

slider-1
slider-2
slider-3
slider-4

A Multiple Carousel is a user interface component that allows you to display multiple carousels on a single page or screen.

slider-1
slider-2
slider-3
slider-3
slider-1
slider-2

API Reference#

Explore the available props for the carousel component

PropertyDescriptionTypeDefault
indicatorsWhether to display indicators for carousel items.booleanfalse
showControlsWhether to display navigation controls (Next/Previous).booleantrue
leftControlCustom ReactNode to be used as the left navigation control.ReactNodeIcon
rightControlCustom ReactNode to be used as the right navigation control.ReactNodeIcon
slideWhether to enable automatic sliding of carousel items.booleanfalse
slideIntervalInterval in milliseconds for automatic slide transitions.number500
indicatorsTypeType of indicators to display.
dot
ring
bar
square
squareRing
dot
indicatorsTypeColorsColor variant for the indicators based on the selected type.
white
slate
white

Reference#

To learn more about the Carousel, please see the documentation of Carousel