Carousel
Interactive slideshow for cycling through a series of content.
Slide 1
This is the first slide
Slide 2
This is the second slide
Slide 3
This is the third slide
Installation
Install the component
templui add carouselAdd the JavaScript to your layout
@carousel.Script()Call this template in your base layout file (e.g., in the <head> section).
API Reference
Required parameter
Hover for description
Carousel
Main carousel container component for interactive slideshows.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
| | |
| | |
| | |
Content
Container for carousel slides with smooth transitions.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Item
Individual carousel slide container.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Previous
Navigation button to go to the previous slide.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Next
Navigation button to go to the next slide.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Indicators
Dot indicators showing current slide position and allowing direct navigation.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
| | - |