Carousel
Dependencies:
- CarouselItem
2.0.0
Requires Celeste 3.0.0
Install or Update
wp celeste pull component CarouselDependencies will automatically be installed.
Properties
| Prop | Description |
|---|---|
withArrows |
Whether to show arrow controls, true or false |
withDots |
Whether to show dot controls, true or false |
autoplay |
Whether the carousel should autoplay, true or false |
autoplaySpeed |
Time in MS before the slide should change if autoplaying |
How to use it
<Carousel autoplay withArrows withDots>
<Carousel.Item>
<div class="bg-primary text-primary-contrast aspect-video flex items-center justify-center">
Carousel Item 1
</div>
</Carousel.Item>
<Carousel.Item>
<div class="bg-secondary text-secondary-contrast aspect-video flex items-center justify-center">
Carousel Item 2
</div>
</Carousel.Item>
</Carousel>