Carousel
A Slideshow for cycling images in confined spaces
Examples
Base
Slide 2
Slide 3
Slide 4
Slide 5
Show code
Carousel List
Show code
Custom Indicators
Show code
Customise
Show code
Class props
Class prop | Description | Props | Suffixes | |
---|---|---|---|---|
arrowIconClass | Class of arrow elements. | |||
arrowIconNextClass | Class of next arrow element. | |||
arrowIconPrevClass | Class of prev arrow element. | |||
indicatorItemActiveClass | Class of indicator element when is active. | |||
indicatorItemClass | Class of indicator item element. | |||
indicatorItemStyleClass | Class of indicator element to separate different styles. | indicatorStyle | ||
indicatorsClass | Class of indicators element. | |||
indicatorsInsideClass | Class of indicators element when inside. | indicatorInside | ||
indicatorsInsidePositionClass | Class of indicators element when inside and position. | indicatorInside | ||
itemActiveClass | Class of carousel item when is active. | |||
itemClass | Class of carousel item. | |||
itemsClass | Class of slider element. | |||
itemsDraggingClass | Class of slider element on drag. | |||
overlayClass | Class of the root element in overlay. | overlay | ||
rootClass | Class of the root element. | |||
sceneClass | Class of the wrapper element of carousel items. |
Carousel component
html
<o-carousel></o-carousel>
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
arrow | boolean | - | true | |
arrowHover | boolean | - | true | |
asIndicator | boolean | - | ||
autoplay | boolean | - | false | |
breakpoints | object | - | {} | |
hasDrag | boolean | - | true | |
iconNext | string | - | From config: carousel: { | |
iconPack | string | - | ||
iconPrev | string | - | From config: carousel: { | |
iconSize | string | - | ||
indicator | boolean | - | true | |
indicatorInside | boolean | - | false | |
indicatorMode | string | - | 'click' | |
indicatorPosition | string | - | 'bottom' | |
indicatorStyle | string | - | 'dots' | |
interval | number | - | From config: carousel: { | |
itemsToList | number | - | 1 | |
itemsToShow | number | - | 1 | |
modelValue | number | - | 0 | |
overlay | boolean | - | ||
override | boolean | - | ||
pauseHover | boolean | - | false | |
repeat | boolean | - | false |
Events
Event name | Properties | Description |
---|---|---|
update:modelValue | ||
scroll | ||
click |
Slots
Name | Description | Bindings |
---|---|---|
default | ||
arrow | ||
indicators | ||
indicator | ||
overlay |
Sass variables
Current theme ➜ Oruga Base
SASS Variable | Default |
---|---|
$carousel-arrow-background | $white |
$carousel-arrow-color | $primary |
$carousel-arrow-icon-spaced | 1.5rem |
$carousel-arrow-top | 50% |
$carousel-arrow-size | 1.5rem |
$carousel-arrow-border-radius | $base-rounded-border-radius |
$carousel-arrow-border | 1px solid $carousel-arrow-background |
$carousel-arrow-transition | $speed-slow $easing |
$carousel-indicators-background | rgba($white, 0.5) |
$carousel-indicators-padding | 0.5rem |
$carousel-indicator-margin | 0 0.5rem 0 0 |
$carousel-indicator-color | $primary |
$carousel-indicator-background | $white |
$carousel-indicator-border | 1px solid $carousel-indicator-color |
$carousel-indicator-active-background | $carousel-indicator-color |
$carousel-indicator-active-border | 1px solid $carousel-indicator-color |
$carousel-indicator-transition | $speed-slow $easing |
$carousel-indicator-size | 10px |
$carousel-indicator-dots-border-radius | $base-border-radius |
$carousel-indicator-lines-height | 5px |
$carousel-indicator-lines-width | 25px |
$carousel-items-transition | all $speed-slower ease-out 0s |
$carousel-item-border | 2px solid transparent |
$carousel-overlay-background | hsla(0, 0%, 4%, 0.86) |
$carousel-overlay-zindex | 40 |
See ➜ 📄 Full scss file
Current theme ➜ Oruga Full
SASS Variable | Default |
---|---|
$carousel-arrow-background | $white |
$carousel-arrow-color | $primary |
$carousel-arrow-icon-spaced | 1.5rem |
$carousel-arrow-top | 50% |
$carousel-arrow-size | 1.5rem |
$carousel-arrow-border-radius | $base-rounded-border-radius |
$carousel-arrow-border | 1px solid $carousel-arrow-background |
$carousel-arrow-transition | $speed-slow $easing |
$carousel-indicators-background | rgba($white, 0.5) |
$carousel-indicators-padding | 0.5rem |
$carousel-indicator-margin | 0 0.5rem 0 0 |
$carousel-indicator-color | $primary |
$carousel-indicator-background | $white |
$carousel-indicator-border | 1px solid $carousel-indicator-color |
$carousel-indicator-active-background | $carousel-indicator-color |
$carousel-indicator-active-border | 1px solid $carousel-indicator-color |
$carousel-indicator-transition | $speed-slow $easing |
$carousel-indicator-size | 10px |
$carousel-indicator-dots-border-radius | $base-border-radius |
$carousel-indicator-lines-height | 5px |
$carousel-indicator-lines-width | 25px |
$carousel-items-transition | all $speed-slower ease-out 0s |
$carousel-item-border | 2px solid transparent |
$carousel-overlay-background | hsla(0, 0%, 4%, 0.86) |
$carousel-overlay-zindex | 40 |
See ➜ 📄 Full scss file
Current theme ➜ Bulma
The theme does not have any custom variables for this component.
Current theme ➜ Bootstrap
The theme does not have any custom variables for this component.