# @mentorkadriu/vue-tiny-slider

> Vue 3 component for tiny-slider

Latest version **0.1.8** (published 2021-12-14) · 0 weekly downloads

## Install

```sh
npm install @mentorkadriu/vue-tiny-slider
pnpm add @mentorkadriu/vue-tiny-slider
yarn add @mentorkadriu/vue-tiny-slider
bun add @mentorkadriu/vue-tiny-slider
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2021-12-14 |
| First published | 2021-12-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mentor Kadriu |
| Maintainers | mentorkadriu |
| Keywords | vue, tiny-slider, slider, carousel, vue3 |

## Links

- npm: https://www.npmjs.com/package/@mentorkadriu/vue-tiny-slider
- Repository: https://github.com/mentorkadriu/vue-tiny-slider
- Homepage: https://github.com/mentorkadriu/vue-tiny-slider#readme
- Issues: https://github.com/mentorkadriu/vue-tiny-slider/issues
- npm.io page: https://npm.io/package/@mentorkadriu/vue-tiny-slider

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^3.0.0
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [tiny-slider](https://npm.io/package/tiny-slider.md) ^2.9.4

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 0.1.8 (latest) — 2021-12-14
- 0.1.7 — 2021-12-13
- 0.1.6 — 2021-12-13
- 0.1.5 — 2021-12-13
- 0.1.0 — 2021-12-13

## README

# vue-tiny-slider


## Table of Contents

* [Installation](#installation)
* [Usage](#usage)
* [Demo](#demo)
* [Development](#development)

## Installation
```
npm install @mentorkadriu/vue-tiny-slider
```
## Usage

More usage options can be found in the:
- [Full demos](https://vue-tiny-slider.vercel.app/)
- [/src/demos](https://github.com/mentorkadriu/vue-tiny-slider/tree/main/src/demos).
- [stackblitz.com](https://stackblitz.com/edit/vue-z2kxue)

```vue
<script>
  import { ref, onMounted } from "vue";
  import VueTinySlider from "@mentorkadriu/vue-tiny-slider";

  export default {
  name: "App",
  components: { VueTinySlider },
  setup() {
    // Optional: Create a ref to hold the slider value
    const slider = ref(null);
    
    // https://github.com/ganlanyuan/tiny-slider#options
    const options = {
      items: 3,
      speed: 400
    }
    onMounted(() => {
      // Get slider instance
      console.log(slider.value.getSlider());
    });


    function onIndexChange(info) {
      console.log(info);
    }
    
    return {
      onIndexChange,
      options,
      slider,
    };
  },
};
</script>

<template>
  <VueTinySlider :options="options" ref="slider" @indexChanged="onIndexChange">
    <div>Slide #1</div>
    <div>Slide #2</div>
    <div>Slide #3</div>
  </VueTinySlider>
</template>
```
## Development

### Setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build-lib
```

---
_Source: https://npm.io/package/@mentorkadriu/vue-tiny-slider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
