# vue-listshow

> vue-listshow is a Vue component to create a and display you lists in a beautiful sliding cards.

Latest version **0.1.0** (published 2019-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-listshow
pnpm add vue-listshow
yarn add vue-listshow
bun add vue-listshow
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-02-13 |
| First published | 2019-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 743.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Miloudi Mohamed |
| Maintainers | miloudimohamed |
| Keywords | vuejs, vue-listshow, vue-component, list, card, vue-card, component |

## Links

- npm: https://www.npmjs.com/package/vue-listshow
- Repository: https://github.com/MiloudiMohamed/vue-listshow
- Homepage: https://github.com/MiloudiMohamed/vue-listshow#readme
- Issues: https://github.com/MiloudiMohamed/vue-listshow/issues
- npm.io page: https://npm.io/package/vue-listshow

## Dependencies (2)

- [cross-env](https://npm.io/package/cross-env.md) ^5.2.0
- [laravel-mix](https://npm.io/package/laravel-mix.md) ^4.0.14

## Recent versions

- 0.1.0 (latest) — 2019-02-13

## README

# vue-listshow

![](https://img.shields.io/npm/v/vue-listshow.svg?label=version&colorB=blue&style=flat)
![](https://img.shields.io/npm/dt/vue-listshow.svg?style=flat)
![](https://img.shields.io/npm/l/vue-listshow.svg?style=flat)


vue-listshow is a Vue component to create a and display your lists in a beautiful sliding cards.

It's mainly inspired from  the [electronjs](https://electronjs.org/) releases cards


![alt text](/preview/vue-listshow.gif)

## Installation

#### Via YARN
```bash
yarn add vue-listshow
```

#### Via NPM
```bash
npm i vue-listshow
```

Then register it inside your component

```js
import VueListshow from 'vue-listshow'
...
components: {
    ...
    VueListshow,
}

```

## Usage
Now, what you have to do is to pass your array of objects as an `items` prop

and then you'll receive back each  object as an `item` property
```html
<vue-listshow :items="arrayList">
    <template slot-scope="{ item }">
        ...
    </template>
</vue-listshow>
```

You may refer to the [VueJs#scoped-slot](https://vuejs.org/guide/components-slots.html#Scoped-Slots-with-the-slot-scope-Attribute) docs for more information about how to use `scoped slots`

#### Note
By default no styles attached to the cards generated, so you should pass your own style through your `classes` prop
```html
<vue-listshow :items="arrayList" :classes="m-2 w-full bg-black text-grey-light rounded-lg">
    ...
</vue-listshow>
```

#### Available props:

| Prop           | Type     | Default | Required |
| -------------- | -------- | ------- | -------- |
| items          | Array    |   ---   |  true    |
| classes        | String   |   ---   |  false   |
| transition     | Number   |  300ms  |  false   |
| opacity        | Number   |  0.7    |  false   |

**Example of usuage**

```html
<vue-listshow
    :items="items"
    classes="m-2 w-full bg-black text-grey-light rounded-lg"
    :transition="400"
    :opacity=".8"
>
...
</vue-listshow>
```
## Issues and Contribution
If you find any bug or problem please open an issue or create a pull request, Thanks!.

## Licence
The MIT License (MIT). Please see License File for more information.

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