Need help with Vue or Nuxt? We build fast apps, custom UI libraries, and help you move to Vue 3 and Nuxt 3 — start with a free 2-week trial.

Carousel V2
#

Examples
#

Default
#

Open in GitHub

Ratio
#

The ratio prop allows you to set the aspect ratio of the carousel.

Open in GitHub

Height
#

If you need specific height instead of ratio, you can use height prop.

Open in GitHub

Arrow buttons
#

Arrow buttons allow user switch to next or previous slide. Can be hidden by setting arrows prop to false.

Open in GitHub

Indicator buttons
#

Indicators (or dots) used to quickly change slide by it's index. Can be hidden by setting indicators prop to false.

Open in GitHub

Group
#

VaCarouselGroup component allows you to group slides. This way you can create a carousel with multiple slides per view. You can set per-group prop to define how many slides will be shown in group.

Open in GitHub

Slots
#

Slots allow you to customize carousel component.

Open in GitHub

Infinite
#

By default carousel can be scrolled infinite. This means that after last slide first will be shown. You can disable this behavior by setting infinite prop to false.

Open in GitHub

Autoscroll
#

Autoscroll animation. You can set autoscroll prop to true to enable autoscroll. You can also set autoscroll-interval prop to define time in ms between each slide change.

Open in GitHub

Fade
#

Additional carousel slide switch effect. You can set effect prop to fade to enable fade effect. You can also set autoscroll prop to true to enable autoscroll.

Open in GitHub

Swipe
#

The swipable prop enables swipe behavior for the component.

Open in GitHub

Props #

NameDescriptionTypesDefault
ariaGoToSlideLabel

The aria-label of go to slide button.

String

"$t:goSlide"

ariaLabel

The aria-label of carousel.

String

"$t:carousel"

ariaNextLabel

The aria-label of next button.

String

"$t:goNextSlide"

ariaPreviousLabel

The aria-label of previous button.

String

"$t:goPreviousSlide"

ariaSlideOfLabel

The aria-label of the slide.

String

"$t:slideOf"

arrows

Show or hide next and previous button.

Boolean

true

autoscroll

Enable autoscroll animation.

Boolean

false

autoscrollInterval

Time in ms. Each autoscroll-interval next slide will be shown.

String | Number

5000

autoscrollPauseDuration

Pause animation duration in ms after user changed slide.

String | Number

2000

color

Color of the component (theme string or HEX string).

String

"primary"

effect

Slide change effect. Can be scroll, fade or none.

String

"scroll"

indicators

Show or hide indicators at the bottom of slider

Boolean

true

indicatorTrigger

Event which will trigger indicator to change slide

String

"click"

infinite

If true, after last slide first will be shown.

Boolean

true

modelValue

Slide index to be shown.

Number

0

preset

Named preset combination of component props.

String | Array

-

stateful

Add possibility to work with component without setting v-model.

Boolean

true

vertical

Boolean

false

Events #

NameDescription

update:modelValue

The event is triggered when the component needs to change the model. Is also used by v-model and must be listed after the v-model

Slots #

NameDescription

default

Carousel slides

indicator

Custom style for indicator button

next-arrow

Custom style for next button

prev-arrow

Custom style for previous button