# @pderas/vue2-foldable

> A vue 2 component to show / hide content

Latest version **1.0.0** (published 2019-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pderas/vue2-foldable
pnpm add @pderas/vue2-foldable
yarn add @pderas/vue2-foldable
bun add @pderas/vue2-foldable
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-02-28 |
| First published | 2019-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | reed-jones, drewpderas, codymoorhouse |
| Keywords | vue2, vue2js, vue2foldable, vue2-foldable, foldable |

## Links

- npm: https://www.npmjs.com/package/@pderas/vue2-foldable
- Repository: https://github.com/PDERAS/vue2-foldable
- Homepage: https://github.com/PDERAS/vue2-foldable#readme
- Issues: https://github.com/PDERAS/vue2-foldable/issues
- npm.io page: https://npm.io/package/@pderas/vue2-foldable

## Recent versions

- 1.0.0 (latest) — 2019-02-28

## README

# Vue Loader
A vue.js component to allow a section to collapse and expand with an ainimation.

## How to initialize Vue Loader
Vue foldable is built as a vue plugin. It can be initialized just as the Vue documentation states.

```javascript
import Foldable from "@pderas/vue2-foldable";

Vue.use(Foldable, {
    peekabooHeight:  0, // default
});
```
## Usage

#### Creation
Vue foldable is easily created, and allows for a slot to be inserted.

```HTML
<foldable :collapsed="false">
    <div slot-scope>

    </div>
</foldable>
```

## Properties
| Property  | Required | Type    | Default | Description                                             |
|-----------|:--------:|:-------:|---------|---------------------------------------------------------|
| collapsed | true     | Boolean | n/a     | If the section is collapsed or not.                     |
| height    | false    | Number  | 0       | The height of foldable.                                 |
| minHeight | false    | Number  | 0       | The minimum height to show of the content.              |

## License
This project is covered under the MIT License. Feel free to use it wherever you like.

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