vue-keen-slider
vue-keen-slider
A vue wrapper for the keen slider library.
Usage
<template>
<keen-slider arrow-color="black" loop navigation-arrows navigation-dots>
<keen-slide>1</keen-slide>
<keen-slide>2</keen-slide>
<keen-slide>3</keen-slide>
<keen-slide>4</keen-slide>
</keen-slider>
</template>
Note: You need to import the css file:
import 'vue-keen-slider/dist/vue-keen-library.css'
All options of the keen slider library are accessible as vue prop.
This library also includes 5 additional props for more easy use:
navigation-arrows(boolean): Enables navigation arrows like in the "arrows and dots" example.navigation-dots(boolean): Enables navigation dots like in the "arrows and dots" example.arrow-color(css color string): Changes the color of the navigation arrow.useParentScopeId(boolean): Use the css scope of the parent component. Useful for styling.autoplay(boolean, string, number): Autoplay the slider. If you only pass true, the default value will be 3000ms. Autoplay is disabled by default. You need to pass the time in ms.
Further documentation: Component Docs
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.0 | ^2.6.14 | ||
| 1.4.1 | ^2.6.11 | ||
| 1.4.0 | ^2.6.11 | ||
| 1.3.2 | ^2.6.11 | ||
| 1.3.0 | ^2.6.11 | ||
| 1.2.1 | ^2.6.11 | ||
| 1.1.4 | ^2.6.11 | ||
| 1.1.3 | ^2.6.11 | ||
| 1.1.2 | ^2.6.11 | ||
| 1.1.1 | ^2.6.11 | ||
| 1.1.0 | ^2.6.11 | ||
| 1.0.0 | ^2.6.11 | ||
| 0.4.2 | ^2.6.11 | ||
| 0.4.0 | ^2.6.11 | ||
| 0.3.0 | ^2.6.11 | ||
| 0.2.0 | ^2.6.11 | ||
| 0.1.4 | ^2.6.11 | ||
| 0.1.3 | ^2.6.11 | ||
| 0.1.2 | ^2.6.11 | ||
| 0.1.1 | ^2.6.11 | ||
| 0.1.0 | ^2.6.11 |