Skip to content
Carousel ⚠️ Experimental
The Carousel component can be used imported from:
Playground
Parameters
Events
This component has events. Check the documentation about how to use the events.
Name | Payload | Description |
---|---|---|
onChange | number | Fires when the slide changes |
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
slide-<number> | span | Slot for the slide content. The number is the index of the slide. |
Parameters use
Check the documentation about how to use the parameters.
config
The config
attribute is used to customize the interaction components of the carousel. The interaction components are the dots and the navigation arrows.
The first modifier is the arrows
styling. The possible values are: circle
, chevron
or semi
.
The second modifier is the dots
position. Possible values are: center
, left
, right
.
The third modifier adds navigation to the dots using nav
. Requires some dots
config.
You can combine the two modifiers separating them with a (:
). The patter would be <?arrows>:<?dots>:<?nav>
.
delay
The delay
attribute is used to define the time in milliseconds between each slide.
Slides
Make sure for each slide to use the slot
attribute with the value slide-<number>
. The number should be incremental.
Browser support
Detected engine:
Chromium
Webkit
Gecko
CodeSandbox example
Sorry, not available yet ☹️