Vue Splide
Vue Splide is the Splide component for Vue.
Installation
Get the latest version by NPM:
Registration
Global Registration
Import vue-splide
and install into Vue:
Local Registration
Import Splide
and SplideSlide
components:
CSS
Import styles if you need.
Options and Props
The Splide
component accepts options as an object:
Also, you can pass extensions or transition as props.
See this document for more details.
Listening to Events
You can listen to all Splide events through the Splide
component. The callback function name is generated by the original event name, adding a "splide:" prefix. For example, "arrow:mounted" will be "splide:arrow:mounted".
Note that the first argument is the splide instance, meaning original arguments are shifted by one.
Examples
Here is a small example:
More examples: