OrionCarousel

<o-carousel> a pour but d'être un moyen très simple d'afficher un composant de type carrousel de présentation.

Il propose plusieurs options de personnalisation comme le défilement automatique, la mise en pause lors du survol ainsi que différents slots pour en gérer le contenu.

Usage

CarouselSimpleSlider CarouselAutoSlider CarouselPoster CarouselPlayground

Props

Name
colorOrion.Color | Orion.ColorAlt = 'brand'
hideNavigationButtonsboolean = false
hideNavigationDotsboolean = false
loopboolean = false
modelValuenumber | string = undefined
pauseOnHoverboolean = false
stepTimernumber = undefined

Events

Name
Payload type
update:modelValue
number | string

Slots

Name
Bindings
poster
step: number | string | undefined
stepIndex: number
default
step: number | string | undefined
stepIndex: number
goPreviousStep: () => void
goNextStep: () => void
navigation
step: number | string | undefined
stepIndex: number
goPreviousStep: () => void
goNextStep: () => void
actions
step: number | string | undefined
stepIndex: number
goPreviousStep: () => void
goNextStep: () => void
goToStep: (step: { name: number | string }) => void
goToStepIndex: (index: number) => void

PublicInstance

Name
Type
step
() => string | number | undefined
stepsLength
() => number
stepIndex
() => number
shouldLoop
() => boolean
goToStep
(step: { name: string | number; uid: number; }) => void
goToStepIndex
(index: number) => void
goPreviousStep
() => void
goNextStep
() => void
_el
(() => HTMLElement | undefined) | undefined

Provide

Name
Type
_carousel
publicInstance

Props

Name
lazyboolean = false
lazyOnceboolean = false
namenumber | string = undefined
Required

Slots

Name
Bindings
default
isActive: boolean