import { CCarousel } from '@coreui/react'
// or
import CCarousel from '@coreui/react/src/components/carousel/CCarousel'
PropertyDescriptionTypeDefault
activeIndexindex of the active item.number0
classNameA string of all className you want applied to the base component.string-
controlsAdding in the previous and next controls.boolean-
darkAdd darker controls, indicators, and captions.boolean-
indicatorsAdding indicators at the bottom of the carousel for each item.boolean-
intervalThe amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.number | boolean5000
onSlidCallback fired when a slide transition end.(active: number, direction: string) => void-
onSlideCallback fired when a slide transition starts.(active: number, direction: string) => void-
pauseIf set to 'hover', pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. If set to false, hovering over the carousel won't pause it.boolean | 'hover'hover
touch
4.5.0+
Set whether the carousel should support left/right swipe interactions on touchscreen devices.booleantrue
transitionSet type of the transition.'slide' | 'crossfade'-
wrapSet whether the carousel should cycle continuously or have hard stops.booleantrue
On this page