Vue Carousel Component API

Carousel API

Explore the API reference for the Vue Carousel component and discover how to effectively utilize its props for customization.

On this page

CCarousel

jsx
import { CCarousel } from '@coreui/vue-pro'

Props

PropertyDefaultType
controls-boolean

Adding in the previous and next controls.

dark-boolean

Add darker controls, indicators, and captions.

index0number

index of the active item.

indicators-boolean

Adding indicators at the bottom of the carousel for each item.

interval5000boolean, number

The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.

pause'hover'boolean, string

If 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.

transition'slide'string

Set type of the transition.

touch5.10.0+trueboolean

Set whether the carousel should support left/right swipe interactions on touchscreen devices.

wraptrueboolean

Set whether the carousel should cycle continuously or have hard stops.

Events

Event name
slide

Event called when the slide transition starts.

slid

Event called when the slide transition ends.

CCarouselItem

jsx
import { CCarouselItem } from '@coreui/vue-pro'
PropertyDefaultType
activefalseboolean

-

direction'next'string

-

intervalfalseboolean, number

The amount of time to delay between automatically cycling an item.