Carousel

constructor(direction: CarouselDirection? = null, fullscreen: Boolean? = null, overscrollable: Boolean? = null, autoScroll: Boolean? = null, animation: Boolean? = null, swipeable: Boolean? = null, initialIndex: Int? = null, className: String? = null, init: Carousel.() -> Unit? = null)

Creates a carousel component.

Parameters

direction

a carousel direction

fullscreen

whether the carousel should fill the whole screen

overscrollable

whether the carousel should scroll past first and last items

autoScroll

whether the carousel will be automatically scrolled to the closest item border

animation

determines if the transitions are animated

swipeable

determines if the carousel can be scrolled by drag or swipe

className

CSS class names

init

an initializer extension function