1.1.2 • Published 3 years ago

@paperlust/slider v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Slider

Slider is a component vue for multi project.

Installation

Use the package manager nodejs to install Slider.

npm install @paperlust/slider

Usage

import package

import vSlider from '@paperlust/slider';

import style from package

import '@paperlust/slider/dist/style.css';

Example:

import vSlider from '@paperlust/slider';
import '@paperlust/slider/dist/style.css';

export default {
  ....
  components: {
    vSlider
  },
  ....
}

add on your component vue

<v-slider :data="items" :options="options" />

Slots

NameDescription
prevArrowContent to place arrow left
nextArrowContent to place arrow right
topContent to place above image
left-itemContent to place left item slide
right-itemContent to place right item slide
itemContent to place item image
bottomContent to place below image

Props

NameTypeDefaultDescription
dataArray{}Array data item for slider
optionsObject{adaptiveHeight: true, infinite: false,arrows: true,slidesToShow: 4, slidesToScroll: 1}Options for slider

Custom Slider

Can you update this component slider use this documentation vue-slick-carousel

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT