# vue-trb-modal

> `npm i --save vue-trb-modal@1.0.7`

Latest version **1.0.9** (published 2019-04-07) · 0 weekly downloads

## Install

```sh
npm install vue-trb-modal
pnpm add vue-trb-modal
yarn add vue-trb-modal
bun add vue-trb-modal
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2019-04-07 |
| First published | 2019-04-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 14.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | gcoda |

## Links

- npm: https://www.npmjs.com/package/vue-trb-modal
- npm.io page: https://npm.io/package/vue-trb-modal

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.6
- [core-js](https://npm.io/package/core-js.md) ^2.6.5

## Recent versions

- 1.0.9 (latest) — 2019-04-07
- 1.0.7 — 2019-04-05
- 1.0.4 — 2019-04-05
- 1.0.2 — 2019-04-05
- 1.0.0 — 2019-04-05

## README

# Renderless Modal/Toggle Vue Component

`npm i --save vue-trb-modal@1.0.7`

```html
<template>
  <div>
    <modal tag="div">
      <template #activator="{on}">
        <h1 v-on="on">click</h1>
      </template>
      <h2>on click</h2>
    </modal>
    <modal tag="div" hover>
      <template #activator="{on}">
        <h1 v-on="on">mouse enter</h1>
      </template>
      <h2>on hover</h2>
    </modal>
    <modal tag="ul" class="orange" :toggle-on-click="false">
      <template #activator="{on, active, hide}">
        <li v-on="on">inside ul.orange &gt; li</li>
        <ul v-if="active">
          <li @click="hide">close button</li>
        </ul>
      </template>
      <h2>toggleOnClick="false"</h2>
    </modal>
  </div>
</template>

<script>
import Modal from 'vue-trb-modal'
export default {
  components: {
    Modal,
  },
}
</script>
```

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